search for: selected_task

Displaying 2 results from an estimated 2 matches for "selected_task".

2006 Apr 27
1
Ajax response won''t display
...t; --------------------------------------------------------------------- <%= form_remote_tag(:update => "update", :url => {:action => ''add_predecessor''}) %> <span class="edit_label"><label for="selected_task">Predecessor:</label></span> <input type="text" name="selected_task" > <%= Time.now.to_s %> <%= submit_tag "Add" %> <%= end_form_tag %> --------------------------------------------------------------------------...
2008 Dec 19
3
Delete All action
Hi, What is the best way to delete all members of a model? For example I have a tasks model and want to put a link in that will delete all tasks at once. Something like, @tasks = Task.all @tasks.each { |task| task.destroy } Do I need another action for this, and what should the link to it be? cheers, DAZ --~--~---------~--~----~------------~-------~--~----~ You received this message because