Results 1 to 5 of 5
Thread: question about argumentError
Aug 31, 2008, 12:42 #1
- Join Date
- Dec 2004
- 0 Post(s)
- 0 Thread(s)
question about argumentError
I'm getting this from an update function that i had working and then i started working on another section of the site and for some reason this is broken now, but i don't understand the error
ArgumentError in EmploymentController#update_job_description
Unknown key(s): title, duties, pay_band_id, description, department_id, requirements, exempt
now the unknown keys are form fields with corresponding database columns... but how to i find out what's happening here? i have yet to acquire enough experience with this framework to be able to reliably read the application trace AND know what it means.
Can anyone here help or point me in the right direction? my controller action:
def update_job_description @job_description = JobDescription.find(params[:job_description]) if @job_description.update_attributes(params[:job_description]) redirect_to '/employment/list_job_descriptions' flash[:notice] = "job description updated" else redirect_to :action => '/employment/edit_job_description', :id => @job_description flash[:notice] = "job description update failed" end endyour brain reacts in the same way whether you are
looking at something or thinking about it...