Skip to content
Browse files

Fixing redirect for "Save and Continue Editing" to redirect back to t…

…he edit page after a create action
  • Loading branch information...
1 parent b38b9f7 commit 9713eed9849870b5be9b46b3f00f8e42f38ced2e @jcnetdev jcnetdev committed Sep 17, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/auto_admin_controller.rb
View
2 lib/auto_admin_controller.rb
@@ -229,7 +229,7 @@ def save
if params[:_continue]
flash[:notice] << "You may edit it again below."
- redirect_to :action => 'edit'
+ redirect_to :action => 'edit', :id => @object.id
elsif params[:_addanother]
flash[:notice] << "You may add another #{human_model.downcase} below."
redirect_to :action => 'edit', :id => nil

0 comments on commit 9713eed

Please sign in to comment.
Something went wrong with that request. Please try again.