facebox icon indicating copy to clipboard operation
facebox copied to clipboard

Support for Rails :method in links

Open rdeshpande opened this issue 14 years ago • 0 comments

Hi there,

Just added some basic support for Rails link_to methods that use the ":method => :foo" as part of the arguments. The change will check to see if the 'data-method' attribute is on the link and use that to make the AJAX request, defaulting to GET (as it was) if the attribute is not present.

Cheers, Rohan

rdeshpande avatar Jul 27 '11 01:07 rdeshpande