diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-02-17 19:07:02 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-02-17 19:07:02 +0000 |
commit | 8151c4e84d3ecad36357dc97a8d8e6b0399fa8d9 (patch) | |
tree | 0593e569ddf4ad6908e8bb9b94e7824f4b7ee14a /actionpack/lib/action_controller | |
parent | 0aad5abcc8f3893dd0664b0813fa6815f7e43527 (diff) | |
download | rails-8151c4e84d3ecad36357dc97a8d8e6b0399fa8d9.tar.gz rails-8151c4e84d3ecad36357dc97a8d8e6b0399fa8d9.tar.bz2 rails-8151c4e84d3ecad36357dc97a8d8e6b0399fa8d9.zip |
Fixed that on validation errors, scaffold couldn't find template #654 [mindel]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@649 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/scaffolding.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/lib/action_controller/scaffolding.rb b/actionpack/lib/action_controller/scaffolding.rb index 140df73972..52fc570a04 100644 --- a/actionpack/lib/action_controller/scaffolding.rb +++ b/actionpack/lib/action_controller/scaffolding.rb @@ -47,7 +47,7 @@ module ActionController # flash["notice"] = "Entry was successfully created" # redirect_to :action => "list" # else - # render "entry/new" + # render_scaffold('new') # end # end # @@ -64,7 +64,7 @@ module ActionController # flash["notice"] = "Entry was successfully updated" # redirect_to :action => "show/" + @entry.id.to_s # else - # render "entry/edit" + # render_scaffold('edit') # end # end # end @@ -126,7 +126,7 @@ module ActionController flash["notice"] = "#{class_name} was successfully created" redirect_to :action => "list#{suffix}" else - render "#{singular_name}/new#{suffix}" + render#{suffix}_scaffold('new') end end @@ -143,7 +143,7 @@ module ActionController flash["notice"] = "#{class_name} was successfully updated" redirect_to :action => "show#{suffix}/" + @#{singular_name}.id.to_s else - render "#{singular_name}/edit#{suffix}" + render#{suffix}_scaffold('edit') end end |