Ruby on Rails Restful Authentication Login

I have a RoR app that uses restful authentication. I have a simple login form that takes a username and password. When given correct username and password the controller correctly redirects me back to where it should go and when incorrect credentials are entered the form is rendered again. The controller works.

Upon a successful login, however, the main page doesn’t see me as a logged in user. Not sure why. Seems that the logged_in? function always returns false. This works perfectly fine in my development environment.

Any help is appreciated.