Commit d2cadf7d

mo k <mo@mokhan.ca>
2012-09-27 13:53:30
skip cropping and redirect to the creation page when uploaded.
1 parent 82f2209
Changed files (1)
app/controllers/creations_controller.rb
@@ -26,7 +26,8 @@ class CreationsController < ApplicationController
     @creation = current_user.creations.create(params[:creation])
     @creation.category_ids = params[:creation][:category_ids] ||= []
     if @creation.save
-      redirect_to( '/creations/crop/' + @creation.id.to_s ) 
+      #redirect_to( '/creations/crop/' + @creation.id.to_s ) 
+      redirect_to(@creation, :notice => 'Creation was successfully cropped.') 
     else
       flash[:error] = @creation.errors.full_messages
       render :action => "new"