Commit d2cadf7d
Changed files (1)
app
controllers
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"