Hi, if I try params.inspect i see
{"utf8"=>"✓",
"authenticity_token"=>"RvpwQw/RdTAT2d4jtaSyBAYRgT1mKgWg9kyrS7pUnMo=",
"person"=>{"birthplace"=>{"it"=>"Padova", "de"=>"Padovan"}},
"commit"=>"Create Person", "action"=>"create", "controller"=>"people"}
So I think is correct but in database i have
--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nit: Padova\nde:
Padovan\n
I try to change
<input type="text" size="25" name="person[birthplace[it]]"
id="person_birthplace[it]" value="" >
<input type="text" size="25" name="person[birthplace[de]]"
id="person_birthplace[de]" value="" >
with
<input type="text" size="25" name="person[birthplace][it]]"
id="person_birthplace[it]" value="" >
<input type="text" size="25" name="person[birthplace][de]]"
id="person_birthplace[de]" value="" >
but the result is the same
--
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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/706cab8dce9a5fb6e0fb40e4c97fde75%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment