2009/9/4 Daniel Drehmer <[email protected]>:
>
>> @sandbox.users.find_by_role('donkey')
>
> Well, it turns out you can't do it like that. But I'm looking into
> named scopes, to see if it solves my problem.
I realise looking at your associations again that I should have said
@sandbox.participations.find_by_role('donkey')
I was thinking that it was the user that had the role rather than the
pariticipation. Does this not work either?
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---