Hello Guys, I am using couch-rest model gem and below is my snippet code.
class S include CouchRest::Model::Embeddable property :s1, String property :s2, String end class P < CouchRest::Model::Base property :name, String property :xx, [S] end p =P.new p.xx << S.new(s1: "S1 EXISTS") p.xx << S.new(s2: "S2 EXISTS") p.save Now my doubt is when i do p.save "null" get stored in the couchdb, which I dont want. If i don't use array, then null gets auto deleted , I want the same feature for the array as well. Can you please suggest something? Attachments: http://www.ruby-forum.com/attachment/10784/Screen_Shot_2015-05-15_at_7.37.03_pm.png -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/259a46afea5e9a23947b407e7e78d242%40ruby-forum.com. For more options, visit https://groups.google.com/d/optout.

