Problem appears when I want to remove element from paginated table in "ajaxized" way. My tasks controller calls its destroy method in response to [DELETE] /tasks/1234
, but at the end I want to redirect to index to get the list automatically refreshed.
Unfortunately, what redirect_to tasks_url
at this point does is [DELETE] /tasks
request.
Is there any way to force GET request instead of DELETE while redirecting from inside of destroy ?