Send Rails PUT request through javascript
How would I go about sending a PUT request to an action through javascript in Rails? Here's how I do it in the .html.erb file:

    <%= link_to "Check", check_task_path(task), :method => :put %>

How would I do this in javascript?
Send Rails PUT request through javascript
===

How would I go about sending a PUT request to an action through javascript in Rails? Here's how I do it in the .html.erb file:

    <%= link_to "Check", check_task_path(task), :method => :put %>

How would I do this in javascript?