Justin wrote: > I have a simple association setup as follows > > class Action > ... > has 1, :action_user > ... > end > > I had that problem before too, it has to do with it being 'has 1'. To get around it for now I did 'has n' and looped through the result with '.each' even though only 1 record was going to be returned. If you do '.first' the same thing will happen as 'has 1', so you need to use something like '.each' to make it work right.
Derek --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "DataMapper" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/datamapper?hl=en -~----------~----~----~----~------~----~------~--~---
