"employee"=>{"id"=>"101"}

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.

You should read up on hashes. You most likely want:

params[:employee][:id]

Mike

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]

params[:employee][:id]

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]