On 12 May 2016 at 09:03, Alessio Varalta <li...@ruby-forum.com> wrote: > Hi, I have an application in rails3 and i have a problem with store a > hash. I create a form with these two field > > <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="" > > > The problem is when i call create and make save i have this string in > database for the field birthplace that is wrong
First look in development.log and check that the parameters are correct in the request. If they look ok then debug the create method and see where it is failing. You can easily do simple debugging by inserting into the code things like logger.info some_variable.inspect Then that will appear in the log Colin -- 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+unsubscr...@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/CAL%3D0gLsOitqhG_GJNs7RQMH20%3DBSQkT7sq5gJvtv2NBCw8E3Eg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.