I have the following.
class Page < ActiveRecord::Base
belongs_to :category
serialize :fields
end
The value of fields wi
If only I´ve found this post earlier I would not have missed three days on this issue.
I was not able to comment on the answear so just to add, if anyone trying to fields_for a mongo array of hashes (has_many like) additionally you will need to supply the root OpenStruct object with a "#{key}_attributes=" (in this case fields_attributes=) method so fields_for would identify it is a has_many relation.
Hope it helps someone ;)