facebox
facebox copied to clipboard
Support for Rails :method in links
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