PDA

View Full Version : How to change form parameters?



primary0
9 Feb 2011, 7:36 PM
Hi.

My form submits parameters this way:

{"name"=>"John", "id"=>"1"}

How do I change it to something like this:

{"employee" => {"name"=>"John", "id"=>"1"}}

:s