[Bookcarnival-code] Josh: Question About Authentication
Joe Kueser
joe at kuesers.net
Tue Mar 6 22:16:28 EST 2007
In the index action of the account controller it has the following:
def index
redirect_to(:action => 'signup') unless logged_in? || User.count
> 0
end
I understand all but the "|| User.count > 0" What's that about?
With that there, the system seems to think I'm always logged in. If
I comment that part out:
def index
redirect_to(:action => 'signup') unless logged_in? # ||
User.count > 0
end
It seems to work OK.
Also, have you read yet how we'll go about tying this in to
individual pages? Is there a global route or something we need to
set up? Or do we have to put the redirect in every action?
Thanks!
Joe
More information about the Bookcarnival-code
mailing list