Agile depot app login failure :(

Hi *,

In an attempt to go back to the drawing board and learn RoR some more -
I have built the depot application from the agile book.

After finishing I tried to create a user for the admin section, however
when ever I go to:

http://localhost:3000/login/add_user

It redirects to the login action, I don’t see the [add user] submit
button??

I am sure this is connected to the application.rb

def authorize
unless session[:user_id]
flash[:notice] = “Please log in”
redirect_to(:controller => “login”, :action => “login”)
end
end
en

To trace if this may have been a typos by yours truly - I replaced all
of the files with the ones from the pragmatic site and I am still facing
the same issue?

Did anyone else come across a similar issue when working through the
agile book?

Cheers,
Luke

Hi Luke.

It looks like it can’t find the user_id from the session. Check if you
have
cookies disabled in your browser.

Cheers,

Dan.