diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index 105622e7d30ebf6831403072e48a996b5dae4fc4..888126d96dd1a0f0959ee1ef5c7e40a863eaf479 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Fixed link_to :confirm #936 [Nicholas Seckar] + * Improved error reporting especially around never shallowing exceptions. Debugging helpers should be much easier now #980 [Nicholas Seckar] * Fixed Toggle.display in prototype.js #902 [Lucas Carlson] diff --git a/actionpack/lib/action_view/helpers/url_helper.rb b/actionpack/lib/action_view/helpers/url_helper.rb index 28c718c54c9b4d9a51d0f5138648027e30c03070..4aaab2d3a5142120161f0d3fc977c31854238cb2 100644 --- a/actionpack/lib/action_view/helpers/url_helper.rb +++ b/actionpack/lib/action_view/helpers/url_helper.rb @@ -21,7 +21,7 @@ def url_for(options = {}, *parameters_for_method_reference) # 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)