Hi Paul, I wrote a little helper addressing that problem: https://gist.github.com/1999795
Just include it into you models or into DataMapper::Resource and `my_resource.all_errors` will return a nested hash of all errors in associated dirty objects. Till Am 08.03.2012 um 08:07 schrieb Paul: > Seems like in the 1.2.0 version of the datamapper, the parent/children > objects are also validated as well when saving an object. That's why > it was failing validation because one of my parent object was not > valid and no errors messages are shown because of that. > > On Mar 7, 1:21 pm, Paul <wayofdra...@gmail.com> wrote: >> I am using Rails 3.2.0 if it makes a difference. >> >> On Mar 7, 12:56 pm, Paul <wayofdra...@gmail.com> wrote: >> >> >> >> >> >> >> >>> Hi, >> >>> I recently upgraded to DataMapper 1.2.0 from 1.1.0 and I am not >>> getting validation error messages anymore. I still get >>> DataMapper::Validations::ValidationErrors in my exception but no error >>> messages are populated. >> >>> Any ideas as to why this happens? >> >>> Thanks, >> >>> Paul > > -- > You received this message because you are subscribed to the Google Groups > "DataMapper" group. > To post to this group, send email to datamapper@googlegroups.com. > To unsubscribe from this group, send email to > datamapper+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/datamapper?hl=en. > -- You received this message because you are subscribed to the Google Groups "DataMapper" group. To post to this group, send email to datamapper@googlegroups.com. To unsubscribe from this group, send email to datamapper+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/datamapper?hl=en.