#211 awaiting-merge
Mark Menard

Add support for Rails javascript post links.

Reported by Mark Menard | March 31st, 2009 @ 02:06 PM

When using Rails support for creating links that submit via POST there is no way to click them.

This commit fixes it:

http://github.com/MarkMenard/web...

I've also submitted a pull request.

Comments and changes to this ticket

  • Paul Campbell

    Paul Campbell April 7th, 2009 @ 08:42 AM

    +1 ... this looks good!

  • gaffo

    gaffo May 7th, 2009 @ 06:37 PM

    • State changed from “new” to “awaiting-merge”

    Looks good and has tests. The question is if we want the normal webrat mode to work like this as it doesn't support javascript. So I'm not sure this makes sense in the webrat mode. Normally you'd put a _method parameter on the link if you wanted to change the verb.

  • Bryan Helmkamp

    Bryan Helmkamp June 14th, 2009 @ 09:24 PM

    Thanks for the patch, Mark. It looks good, but I must admit I'm a little confused by this ticket...

    I was under the impression the code we currently have in link.rb covers the cases where you supply a :method option to link_to. Mark -- Are you saying there's a case we missed? Can you provide an example of the view code that produces it and the HTML it generates?

    Thanks,

    -Bryan

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

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

Ruby Acceptance Testing for Web applications.

Shared Ticket Bins

People watching this ticket

Pages