Forum: Ruby on Rails agile depot app login failure :(

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Luke H. (Guest)
on 2006-04-25 23:36
(Received via mailing list)
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:


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

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")

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?

Dan V. (Guest)
on 2006-04-26 00:32
(Received via mailing list)
Hi Luke.

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


This topic is locked and can not be replied to.