1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fixed the scaffolding/routing issue for real

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@702 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2005-02-19 23:09:28 +00:00
parent d7845d2919
commit c4a3de5013

View file

@ -141,7 +141,7 @@ module ActionController
if @#{singular_name}.save
flash["notice"] = "#{class_name} was successfully updated"
redirect_to :action => "show#{suffix}" + @#{singular_name}.id.to_s
redirect_to :action => "show#{suffix}", :id => @#{singular_name}.id.to_s
else
render#{suffix}_scaffold('edit')
end