in my controller I do the following after login: redirect_to request.referer) || ''/'' which works well until I test it, then the dwarfs complain that there is no referer defined. I did the following and it worked: redirect_to (defined?(request.referer) && request.referer) || ''/'' It seems like there is no referer (nil or otherwise) defined for TestRequest. the curious thing though is that I''m the only who seems to have seem this problem. did everyone silently work around this... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---