Handle links with Rails 3 data-method attributes

Consider the data-method attribute when identifying the request method for a link.