Re: [Rails] double authocetation : how can I do it the best ?

2014-12-23 Thread Roelof Wobben
That could be a solution. I only have to figure out how I can impersonate a person which is not logged in and add the toys to the card which is in a session. Roelof Op dinsdag 23 december 2014 10:04:25 UTC+1 schreef Vivek Sampara: > Roelof, > > If im reading this phrase right "a client c

Re: [Rails] double authocetation : how can I do it the best ?

2014-12-23 Thread Vivek Sampara
Roelof, If im reading this phrase right "a client comes to the counter " , the end client does not login right ? Then all you have to do is use the same ecommerce solution and let your staff "impersonate" your clients . Look at this https://github.com/rcook/user_impersonate2 gem. On Tue, Dec 23,

Re: [Rails] double authocetation : how can I do it the best ?

2014-12-23 Thread Roelof Wobben
I can do that but most of the gems I see are working with the fact that the person who is logged in is also the person which "owns" the shopping card. With me that is not true. So I try to find a way to resolve that problem. Roelof Op dinsdag 23 december 2014 08:33:41 UTC+1 schreef Vivek Sam

Re: [Rails] double authocetation : how can I do it the best ?

2014-12-22 Thread Vivek Sampara
Hi , Instead of implementing it from scratch try to include any ror ecommerce gems and let it handle the cart and sessions. i personally like the simplicity of piggybak . Cheers On Tue, Dec 23, 2014 at 12:33 PM, Roelof Wobben wrote: > Hello, > > I have th

[Rails] double authocetation : how can I do it the best ?

2014-12-22 Thread Roelof Wobben
Hello, I have this situation. I m a volunteer on a toy library and I want to write a financial / borrow app for the toy library. Now I have two seperate roles : staff member and client. Staff member can log in and put things into the system. Client is not allowed to do anything in the sy