search for: todonotif

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

2005 Dec 29
1
Has_Many - Saving Child Rows
...getting the TODO id returned so I can write the child table... Here is the code I have so far: ########################################## item = Todo.new # Create a new instance of Todo, so create a new item item.attributes = @params["new_item"] # item.todo_notifications << ToDoNotification.new(????????): if item.save # Try to save our item into the database redirect_to(:action => "list") # Return to the list page if it suceeds else render_text "Couldn''t add new item" # Print an error message otherwise end ####################...