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:
parent
d7845d2919
commit
c4a3de5013
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue