Ruby on Rails Sunday, August 29, 2010

nobosh wrote:
> @Peter, thanks for the reply, very helpful.
>
> #1 - I'm going to go with Devise, I found a railscasts video that
> should make installing it easy

Devise is great. Clearance works well also, though it has fewer options.
Clearance is email based by default, you would have to add user name
support on your own if you wanted.

> Also, in terms of making sure users of Domain A only see Domain A
> content, I'm guessing all my models will need to have the instanceID
> added? thxs
>
> B

You're making it more complicated than it really is.

class Domain
has_many :users
end

class User
belongs_to :domain
end

Then just check against the current user's domain.
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment