diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-02-19 23:09:28 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-02-19 23:09:28 +0000 |
commit | c4a3de5013780a5efb9c3d764cbb8c48a7648119 (patch) | |
tree | 43e49f8f25a5df5eaa03af0e3f81701af1b10297 /actionpack/lib | |
parent | d7845d2919aecdfe5def976215207e06ec13e137 (diff) | |
download | rails-c4a3de5013780a5efb9c3d764cbb8c48a7648119.tar.gz rails-c4a3de5013780a5efb9c3d764cbb8c48a7648119.tar.bz2 rails-c4a3de5013780a5efb9c3d764cbb8c48a7648119.zip |
Fixed the scaffolding/routing issue for real
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@702 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/scaffolding.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/scaffolding.rb b/actionpack/lib/action_controller/scaffolding.rb index db988e0216..b52defd983 100644 --- a/actionpack/lib/action_controller/scaffolding.rb +++ b/actionpack/lib/action_controller/scaffolding.rb @@ -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 |