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 !
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
Rustam Mamat 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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
This blog has a great tutorial about how to create the right params hashes: http://www.spacevatican.org/2008/7/18/parametrised-to-the-max Dirk. On 29 aug, 06:15, Rustam Mamat <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> 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 ! > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---