search for: edit_task_path

Displaying 1 result from an estimated 1 matches for "edit_task_path".

2007 Dec 18
0
REST and custom routes
...e @task = Task.find(params[:id]) @task.completed = true end #index.html.erb <td><%=h task.body %></td> <td><%=h task.completed %></td> <td><%= link_to ''Show'', task %></td> <td><%= link_to ''Edit'', edit_task_path(task) %></td> <td><%= link_to ''Destroy'', task, :confirm => ''Are you sure?'', :method => :delete %></td> <td><%= link_to ''Complete'', complete_task_path(task) %></td> script/server Now, add a tas...