search for: timesheet_items

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

Did you mean: timesheet_item
2006 Oct 02
0
Retrieving value in controller - NoMethodError (undefined method `35=' for #<TimesheetItem:0x8ddda08>):
...uot; is the id of the item I want to update. <input type="text" id="timesheet_item_35_work_category" name="timesheet_item[35][work_category]" value="PROJECTS" /> My controller is: def update @timesheet = Timesheet.find(params[:id]) @timesheet.timesheet_items.build(params[:timesheet_item]) @timesheet.update_attributes(params[:timesheet]) end --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyo...