Skip to content

Commit

Permalink
Fixed that on validation errors, scaffold couldn't find template #654
Browse files Browse the repository at this point in the history
…[mindel]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@649 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
dhh committed Feb 17, 2005
1 parent 0aad5ab commit 8151c4e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions actionpack/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*

* Fixed that on validation errors, scaffold couldn't find template #654 [mindel]

* Added Base#hide_actions(*names) to hide public methods from a controller that would otherwise have been callable through the URL. For the majority of cases, its preferred just to make the methods you don't want to expose protected or private (so they'll automatically be hidden) -- but if you must have a public method, this is a way to make it uncallable. Base#hidden_actions retrieve the list of all hidden actions for the controller #644 [Nicholas Seckar]

* Fixed that a bunch of methods from ActionController::Base was accessible as actions (callable through a URL) when they shouldn't have been #644 [Nicholas Seckar]
Expand Down
8 changes: 4 additions & 4 deletions actionpack/lib/action_controller/scaffolding.rb
Expand Up @@ -47,7 +47,7 @@ def self.append_features(base)
# flash["notice"] = "Entry was successfully created"
# redirect_to :action => "list"
# else
# render "entry/new"
# render_scaffold('new')
# end
# end
#
Expand All @@ -64,7 +64,7 @@ def self.append_features(base)
# flash["notice"] = "Entry was successfully updated"
# redirect_to :action => "show/" + @entry.id.to_s
# else
# render "entry/edit"
# render_scaffold('edit')
# end
# end
# end
Expand Down Expand Up @@ -126,7 +126,7 @@ def create#{suffix}
flash["notice"] = "#{class_name} was successfully created"
redirect_to :action => "list#{suffix}"
else
render "#{singular_name}/new#{suffix}"
render#{suffix}_scaffold('new')
end
end
Expand All @@ -143,7 +143,7 @@ def update#{suffix}
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
Expand Down

0 comments on commit 8151c4e

Please sign in to comment.