Ruby on Rails Thursday, May 19, 2016

Hi Thank for the response!!!

I make

serialize :birthplace, Hash


This store the date like {it:"value",de:"value"} and
this work.

I found the problem :

The default serialization that is YAML.

I don't know why this not working I try also only for see if Yaml have a
problem the instruction YAML.dump(params[:person][:birthplace]) and i
have the error !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nit:
like when save the data.

My problem is that there are another application that use YAML and i
want to merge the two database and is a problem because the format of
the fields are differents {} again string.

I don't know why this work in an application and not in this.

--
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/3feffe9e8ff7bee4548192aeefe4cf06%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment