Commit cd9f18ac

mo khan <mo@mokhan.ca>
2013-07-27 03:21:11
minor cleanup
1 parent 8f8a212
Changed files (1)
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