diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-03-20 05:39:13 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-03-20 05:39:13 +0000 |
commit | faecde0ec8c82637ce691fffd7e45e0c623865ba (patch) | |
tree | 1581d18faa283cddf5028e5c060a2f9f74284367 /actionpack/lib/action_controller | |
parent | 6f8c99fa34692f44c4470e0ef155ecc1c8b32cd2 (diff) | |
download | rails-faecde0ec8c82637ce691fffd7e45e0c623865ba.tar.gz rails-faecde0ec8c82637ce691fffd7e45e0c623865ba.tar.bz2 rails-faecde0ec8c82637ce691fffd7e45e0c623865ba.zip |
My beautiful eyes [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3993 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/scaffolding.rb | 4 | ||||
-rw-r--r-- | actionpack/lib/action_controller/templates/scaffolds/list.rhtml | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_controller/scaffolding.rb b/actionpack/lib/action_controller/scaffolding.rb index 3b612df357..8b5554c266 100644 --- a/actionpack/lib/action_controller/scaffolding.rb +++ b/actionpack/lib/action_controller/scaffolding.rb @@ -99,8 +99,8 @@ module ActionController module_eval <<-"end_eval", __FILE__, __LINE__ - verify :method=>:post, :only=>[:destroy#{suffix}, :create#{suffix}, :update#{suffix}], - :redirect_to=>{:action=>:list#{suffix}} + verify :method => :post, :only => [ :destroy#{suffix}, :create#{suffix}, :update#{suffix} ], + :redirect_to => { :action => :list#{suffix} } def list#{suffix} diff --git a/actionpack/lib/action_controller/templates/scaffolds/list.rhtml b/actionpack/lib/action_controller/templates/scaffolds/list.rhtml index 37e761679c..fad2aab7e4 100644 --- a/actionpack/lib/action_controller/templates/scaffolds/list.rhtml +++ b/actionpack/lib/action_controller/templates/scaffolds/list.rhtml @@ -14,7 +14,7 @@ <% end %> <td><%= link_to "Show", :action => "show#{@scaffold_suffix}", :id => entry %></td> <td><%= link_to "Edit", :action => "edit#{@scaffold_suffix}", :id => entry %></td> - <td><%= link_to "Destroy", {:action => "destroy#{@scaffold_suffix}", :id => entry}, {:confirm => "Are you sure?", :post=>true} %></td> + <td><%= link_to "Destroy", {:action => "destroy#{@scaffold_suffix}", :id => entry}, { :confirm => "Are you sure?", :post => true} %></td> </tr> <% end %> </table> |