And you must avoid RoR constructions that spontaneously generate JS...
A little background to this question: I created a link that would
remove an element from the database. Thus, this link has a :method
=> :delete appended to the end.
Doesn't that create a call to an HTTP DELETE verb? That can't be what you want, because I suspect the basic intent is "delete this web page off your server".
> When I look at the source this code
Is that code what's required to convert a normal link into a DELETE link?
> I loaded up
I was simply redirected to the show action.
Don't use :method => :delete. A link that deletes should use :method => :post. If you switch to that, do you get more JS?
Ruby on Rails that will simply not work? Thanks for your help!
An action that deletes should not call with the GET verb.