Marnen Laibow-Koser wrote:
> lucky in ruby wrote:
>>  I have a nested resource hotel_user and i wish to have
>> hotel_users_controller under hotel namespace.
>> 
>> I want to use restful authentication here
> [...]
> 
> No you don't.  restful_authentication should never be used: it relies 
> too much on unmaintainable generated code that takes over your User 
> model.  It was OK when better alternatives didn't exist, but they do 
> now.  Use Authlogic or something else reasonable.

Besides your choice of authentication systems, it also sounds to me like 
you may be confusing authentication and authorization. If you want to 
add some sort of role based authorization then take a look at one of the 
authorization gems/plugins such as CanCan.

http://github.com/ryanb/cancan

I could be misunderstanding your needs. If so then just ignore this 
comment.
-- 
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.

Reply via email to