Adrian D wrote:
> Hi,
> 
> I have a model which has objects which should have always their own
> password.
> 
> If I want to edit object1 I will need password a.
> If I want to edit object2 I will need password b.
> 
> What is the best way to implement this? I am not sure whether I can
> accomplish this with the traditional authorisation methods.
> 
> Thanks for your help!

Best approach would be to add a password field to your model and take a 
password whenever an object is created, verify password when it is 
edited.
-- 
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