I am newbie to ruby as my question reveals. Can anybody help me,
please, how to acces id when i get something like
“employee”=>{“id”=>“101”} in request, thanxs a lot.
Your description makes no sense. But I’ll give it a shot.
If you have an array of parameters called employee, you can access the
id attribute more like
params[:employee][:id]
You should read up on hashes. You most likely want:
params[:employee][:id]
Mike
On 3/4/08, thriller [email protected] wrote:
I am newbie to ruby as my question reveals. Can anybody help me,
please, how to acces id when i get something like
“employee”=>{“id”=>“101”} in request, thanxs a lot.
params[:employee][:id]
–
Greg D.
http://destiney.com/
thriller wrote:
I am newbie to ruby as my question reveals. Can anybody help me,
please, how to acces id when i get something like
“employee”=>{“id”=>“101”} in request, thanxs a lot.
Try
params[:employee]
and
params[:employee][:id]
–
http://www.5valleys.com/
http://www.workingwithrails.com/person/8078