Displaying 1 result from an estimated 1 matches for "find_assignments".
2006 Mar 17
4
deleting from hash question
...o solve. Say that I created a hash:
TASKS = {
"homework" => "Do Your Homework",
"chores" => "Your Have Chores",
"exercise" => "Don''t Forget to Exercise"
}
and then I had an Assignment model with:
def self.find_assignments(person)
find(:all, :conditions => ["person_id = ?", person .id])
end
Which I called in the controller like so:
@current_assignments = Assignment.find_assignments(@person)
So, @current_assignments works fine. Now, the problem. I want to display
the tasks which have NOT yet been...