oh, yes the problem turns out that I was mistakenly using a "Decimal" and then trying to set the object with a float e.g. project.weight = 0.20 , the spec requires one to use "Float"
tangent: is there a nicer way of describing a percentage ? I suppose this works fine On Friday, June 14, 2013 11:34:46 AM UTC-4, Antonio Antillon wrote: > > Could you show some code? How's your model declared and how are you > instantiating a new object and then saving it? > On Jun 14, 2013 8:31 AM, "Charles Monteiro" > <charles....@gmail.com<javascript:>> > wrote: > >> its odd, I have turned on errors and I get the following: >> >> DataMapper::SaveFailureError: Project#save returned false, Project was >> not saved >> >> not telling me much. >> >> I check the error hash and that's empty. >> >> How does a newbie understand what dependencies etc I'm not fulfilling in >> the creation of an object. >> >> BTW, in case it matters I'm creating an object just by new and then >> sending save. This object does have associations so I'm assuming that's >> where the issue but I really would like to know what Datamapper thinks is >> the problem. Currently, I'm confused as to why its not saving. >> >> Any feedback is appreciated. >> >> thanks >> >> -Charles >> >> -- >> You received this message because you are subscribed to the Google Groups >> "DataMapper" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to datamapper+...@googlegroups.com <javascript:>. >> To post to this group, send email to datam...@googlegroups.com<javascript:> >> . >> Visit this group at http://groups.google.com/group/datamapper. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > -- You received this message because you are subscribed to the Google Groups "DataMapper" group. To unsubscribe from this group and stop receiving emails from it, send an email to datamapper+unsubscr...@googlegroups.com. To post to this group, send email to datamapper@googlegroups.com. Visit this group at http://groups.google.com/group/datamapper. For more options, visit https://groups.google.com/groups/opt_out.