"assignable?" is just a filter to select roles that have attribute
"assignable" set to true.
Regarding roles... I want to select not all roles, but roles that are
members of project. And also I cannot change database structure. So I
have the following entities relations:
Roles <- Members -> Projects
|
\ /
Users
Unfortunately I don't know how to select (using RoR) unique roles that
regard only defined project.
In SQL it looks like:
SELECT Roles.id, Roles.name
FROM Roles, Members
WHERE Members.project_id=5
--
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 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
-~----------~----~----~----~------~----~------~--~---