rustam
1
i want to receive some params from html.erb and the hash from the form
like this
{“zinfo”=>{“483”=>{“onetime”=>“32”},
“484”=>{“onetime”=>“32”},
“485”=>{“onetime”=>“22”},
“486”=>{“onetime”=>“22”}},
“commit”=>“決定”,
“authenticity_token”=>“699b7b0ae36faad5bfe515968fdf83a193ca503c”,
“id”=>“235”}
how can i get this value on the controller site .
please help me !
rustam
2
Rustam M. wrote:
i want to receive some params from html.erb and the hash from the form
like this
{“zinfo”=>{“483”=>{“onetime”=>“32”},
“484”=>{“onetime”=>“32”},
“485”=>{“onetime”=>“22”},
“486”=>{“onetime”=>“22”}},
“commit”=>“決定”,
“authenticity_token”=>“699b7b0ae36faad5bfe515968fdf83a193ca503c”,
“id”=>“235”}
how can i get this value on the controller site .
please help me !
If you want it to pass you nested params then name your elements with
brackets, i.e.
id=“484[onetime]”
GL.
-=R
rustam
3
This blog has a great tutorial about how to create the right params
hashes:
Dirk.
On 29 aug, 06:15, Rustam M. [email protected]