This project is archived and is in readonly mode.

#2254 ✓resolved
Max Lapshin

When specifying url, form should be generated with it, but not this.href

Reported by Max Lapshin | March 16th, 2009 @ 03:23 PM

In helpers/url_helper.rb was the following code:


when confirm && method
     "if (#{confirm_javascript_function(confirm)}) { #{method_javascript_function(method)} };return false;"
when method
     "#{method_javascript_function(method, url, href)}return false;"

It means, that when I pass :href to link_to helper, my url was not used.

I've provided patch with test.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Attachments

Referenced by

Pages