Rails 3, Custom Actions, and HTML request methods
问题 I don't really understand the pro's and con's of using "post" vs "get" vs "put" requests, on custom controller actions, and whether to use links or forms/buttons. So let's say I have a simple to-do list with tasks, and a tasks controller, and I want a "complete" action where I find a specific task in the db and update it's status attribute from "incomplete" to "complete." def complete @task = Task.find(params[:id]) if @task.update_attributes(:status => "complete") redirect_to tasks_url,