Commit cd9f18ac
Changed files (1)
app
controllers
app/controllers/creations_controller.rb
@@ -27,9 +27,8 @@ class CreationsController < ApplicationController
if @creation.save
redirect_to new_creation_photo_url(@creation)
else
- @user = current_user
flash[:error] = @creation.errors.full_messages
- render :action => "new"
+ render :new
end
end
@@ -60,6 +59,5 @@ class CreationsController < ApplicationController
def creation_params
params.require(:creation).permit(:name, :story, :is_restricted, :watermark)
- #name, story, is_restricted, watermark
end
end