question re authlogic, all set up but now i''d ike to control access to a resource so only users who own that resource can control it, I figure I put this in the Advert controller - is this approach sound ? http://pastie.org/1069488 I also specify that an admin (just a boolean controlled user) can edit everything... is it good ? User, has many Adverts and Advert belongs to a User Just about to implement this in a new app and wanted a second opinion. cheers bb -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
bingo bob
2010-Aug-02 09:26 UTC
Re: authlogic and controlling the resources users can access
Is this approach sound? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Seemingly Similar Threads
- assign local variable instead of instance variable.
- can authlogic be used for multiple models?
- Authlogic: Trying to login in my Cucumber test - Authlogic::Session::Activation::NotActivatedError
- Authlogic Single Access Token-Web Service Iphone app
- Rails 3 + Authlogic not working all of a sudden