retrieving value from @params

shaun
Mon, 21 Nov 2005 21:39:14 -0000

I''m recieving the error "You have a nil object when you
didn''t expect
it!
The error occured while evaluating nil.each_hash", when trying to access
a value
from params. I''m trying to get the value with

@c =
@params[''CourseSection''][''section_name'']

@params contains the following data

{"commit"=>"Submit",
"CourseSection"=>{"term"=>"fall",
"course_subject"=>"cs",
"section_number"=>"101",
"course_number"=>"153"}}

Any idea what I could be doing wrong.

-Shaun