Marnen, in your example models above, permissions is the name of the
table correct? that I create?

I ended up calling it: projects_users_roles

class ProjectsHaveAndBelongToManyUsersWithRoles <
ActiveRecord::Migration
  def self.up
    create_table :projects_users_roles, :id => false do |t|
      t.references :project, :user, :role
    end
  end

  def self.down
    drop_table :projects_users_roles
  end
end


Just want to make sure I'm understanding how to set something like
this up in Rails. Thxs


On Sep 14, 12:32 pm, Marnen Laibow-Koser <[email protected]> wrote:
> Please quote when replying; otherwise, the discussion is hard to follow.
>
> nobosh wrote:
> > Hi Marnen, thanks I think that's great. The question is now will
> > CanCan Support that?
>
> I have no idea.
>
> > Are you familiar with CanCan?
>
> No.  I've generally used rails_authorization or rolled my own permission
> system.
>
> Best.
> --
> Marnen Laibow-Koserhttp://www.marnen.org
> [email protected]
> --
> Posted viahttp://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.

Reply via email to