Re: [Rails] Why is admin_signed_in? false even after logging in as admin?

2015-12-11 Thread Rob Biedenharn
> On 2015-Dec-11, at 14:58 , Jason Hsu, Ruby on High Speed Rails > wrote: > > Thanks. Yes, this was the problem. Now I understand that this is the proper > procedure for logging in for functional tests. > > This raises another question: Given my use of if statements in my def create > func

Re: [Rails] Why is admin_signed_in? false even after logging in as admin?

2015-12-11 Thread Colin Law
On 11 December 2015 at 17:54, Jason Hsu, Ruby on High Speed Rails wrote: > Back story: > I'm developing a new Rails site for the local Ruby user group. I'm using > Devise to provide authentication for separate user and admin classes. > > Current task: > I'm working on the create/new function for

[Rails] Why is admin_signed_in? false even after logging in as admin?

2015-12-11 Thread Jason Hsu, Ruby on High Speed Rails
Back story: I'm developing a new Rails site for the local Ruby user group. I'm using Devise to provide authentication for separate user and admin classes. Current task: I'm working on the create/new function for the sponsor class. Sponsors are an independent class and are not tied to users, ad