[LRUG] Use of link_to with :put and :delete methods

Joel Chippindale joel.chippindale at gmail.com
Mon Dec 14 00:58:39 PST 2009


One of the consequences of Rob Holland's top quality introduction to
capybara at this months LRUG was that it triggered a discussion about
using the link_to helper with :put and :delete methods in rails and,
in particular, how its implementation relies on javascript. As Rob
pointed out it is easy to miss this dependency particularly when
testing tools like webrat include hacks to make sense of these links
even without using javascript.

As a follow up to this I've posted some suggestions to work around
this problem at
http://blog.monkeysthumb.org/2009/12/12/deleteput-links-break-your-rails-app/

J.



More information about the Chat mailing list