Skip to content

Commit

Permalink
Fixed scaffolding and routes conflict #669
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@693 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
dhh committed Feb 19, 2005
1 parent 70f891a commit 9be37c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_controller/scaffolding.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def update#{suffix}
if @#{singular_name}.save if @#{singular_name}.save
flash["notice"] = "#{class_name} was successfully updated" flash["notice"] = "#{class_name} was successfully updated"
redirect_to :action => "show#{suffix}/" + @#{singular_name}.id.to_s redirect_to :action => "show#{suffix}" + @#{singular_name}.id.to_s
else else
render#{suffix}_scaffold('edit') render#{suffix}_scaffold('edit')
end end
Expand Down

0 comments on commit 9be37c9

Please sign in to comment.