diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-26 11:37:08 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-26 11:37:08 +0000 |
commit | 4b3bb3d2b2c624d3c151f5bd98e6f74ebb61b948 (patch) | |
tree | d0535f82286890b245ce78908e377a6523d3dc56 /actionpack/lib/action_view | |
parent | eb27b7443b30795486e838778010154550a2634c (diff) | |
download | rails-4b3bb3d2b2c624d3c151f5bd98e6f74ebb61b948.tar.gz rails-4b3bb3d2b2c624d3c151f5bd98e6f74ebb61b948.tar.bz2 rails-4b3bb3d2b2c624d3c151f5bd98e6f74ebb61b948.zip |
Fixed link_to :confirm #936 [Nicholas Seckar]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@994 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/helpers/url_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/url_helper.rb b/actionpack/lib/action_view/helpers/url_helper.rb index 28c718c54c..4aaab2d3a5 100644 --- a/actionpack/lib/action_view/helpers/url_helper.rb +++ b/actionpack/lib/action_view/helpers/url_helper.rb @@ -21,7 +21,7 @@ module ActionView # Example: # link_to "Delete this page", { :action => "destroy", :id => @page.id }, :confirm => "Are you sure?" def link_to(name, options = {}, html_options = nil, *parameters_for_method_reference) - html_options = (html_options || {}).symbolize_keys + html_options = (html_options || {}).stringify_keys convert_confirm_option_to_javascript!(html_options) if options.is_a?(String) content_tag "a", name || options, (html_options || {}).merge("href" => options) |