Re: Re: retrieving value from @params

Pete Yandell
Tue, 22 Nov 2005 03:35:44 -0000

Sean,

You must have something else wrong in your real code, because the
code you''ve provided works just fine:

irb(main):001:0> x = {"commit"=>"Submit",
"CourseSection"=>
{"term"=>"fall",
irb(main):002:2* "course_subject"=>"cs",
"section_number"=>"101",
irb(main):003:2* "course_number"=>"153"}}
=> {"commit"=>"Submit",
"CourseSection"=>{"course_subject"=>"cs",
"term"=>"fall",
"section_number"=>"101",
"course_number"=>"153"}}
irb(main):004:0> x["CourseSection"]["section_number"]
=> "101"

Cheers,

Pete Yandell