Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6328033
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:23:12+00:00 2026-05-24T17:23:12+00:00

Im trying to follow a tutorial online to set up an authentication system using

  • 0

Im trying to follow a tutorial online to set up an authentication system using LDAP active directory (have a VERY tough time). So the current error is:

undefined method `request_uri' for nil:NilClass

Referring to the following in my application controller:

def authenticate
unless session[:person]
session[:return_to] = @request.request_uri
redirect_to :controller => "login" , :action => "index"
return false

That part, I think, is supposed to save the url in an @request instance so that it can redirect the user there once he is logged in.

Is request_uri the wrong method? Any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T17:23:13+00:00Added an answer on May 24, 2026 at 5:23 pm

    The problem isn’t the method being called. If you notice the error, the problem is you’re calling a method on nil. In other words, @request does not exist.

    When accessing the request variable, it’s literally request, not @request.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to follow this tutorial Walkthrough: Part 1 - Creating a Basic Project System
I'm using Ruby on Rails 3.0.8. I'm trying to follow the tutorial by Ryan
I am trying to follow this tutorial: http://playcontrol.net/ewing/jibberjabber/opengl_vertex_buffer_object.html And I have received this error:
I'm trying to follow this tutorial - http://www.dotnetcurry.com/ShowArticle.aspx?ID=231&AspxAutoDetectCookieSupport=1 I have both the vsdoc file
I'm trying follow a tutorial to create a custom USB driver in Linux and
I am trying to follow this tutorial on how to connect to a database
I am trying to follow Trees tutorial at: http://cslibrary.stanford.edu/110/BinaryTrees.html Here is the code I
I want to include Core Location and I'm trying to follow this tutorial: http://www.mobileorchard.com/hello-there-a-corelocation-tutorial/
Trying to follow this tutorial. Autotest fails with this error message: sg $autotest loading
I'm trying to follow this tutorial http://eloquentjavascript.net/chapter8.html It mentions a function inPlacePrinter . I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.