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 9086603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T21:31:45+00:00 2026-06-16T21:31:45+00:00

I am currently working through the Rails Tutorial by Michael Hartl and have run

  • 0

I am currently working through the Rails Tutorial by Michael Hartl and have run into an error I can’t understand.

There is a section where the tutorial explains how to create custom URI’s in the routes.rb file. The tutorial explains that by coding this:

match '/about', to: 'static_pages#about'

named routes should automatically be created that look like this:

about_path => '/about'
about_url  => 'http://localhost:3000/about'

The following section then helps you work through fixing up rspec tests by replacing certain bits of code with these variables. But when I do this, I end up failing every test because all the “automatically created variables” can’t be found…

Can anyone explain to me why they aren’t being found or where I can look to see if they were in fact created already.

  • 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-06-16T21:31:46+00:00Added an answer on June 16, 2026 at 9:31 pm

    As far as I’m aware, if you do not use as:, you do not get a named route. See the guides for more info.

    In your example, you could do the following:

    get '/about', to: 'static_pages#about', as: 'about'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently working through Michael Hartl's Rails Tutorial while experimenting with some other
I'm working through the Rails Tutorial, by Michael Hartl, and a question popped up,
I'm working through Michael Hartl's Ruby on Rails tutorial on http://ruby.railstutorial.org . I'm having
So I am working through the Ruby on Rails 3 Tutorial. I am currently
I'm working through the Michael Hartl Tutorial and am having trouble getting sign-outs to
I am currently working through this tutorial: Getting Started with jQuery For the two
So I'm currently working on a Berkeley database through C, and I ran into
Currently working with converting SQLException error messages into messages that are more useful for
I am following the Ruby on Rails tutorial by Michael Hartl http://ruby.railstutorial.org/ I installed
I'm working through http://railstutorial.org (currently working on section 10.4.2 - destroying users). My User

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.