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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T13:31:07+00:00 2026-06-06T13:31:07+00:00

This question stems from Hartl’s Rails Tutorial (progressed in chapter 9) – sorry if

  • 0

This question stems from Hartl’s Rails Tutorial (progressed in chapter 9) – sorry if it seems particularly noobish…

Currently, I understand that in the routes.rb file, when a page was defined using, for example:

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

a link generated in an embedded ruby:

<li><%= link_to "Help", help_path %></li>

would function. The help_path, and specifically the word “path”, would correspond to the “#help” defined in routes.

However, the routes file did not define links for items such as users_path (used to show all users), or edit_user_path(current user) (used to edit settings of the current user) – I was confused as to where they were defined, and how they are able to correctly function and link me the desired places.

Thanks!

  • 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-06T13:31:08+00:00Added an answer on June 6, 2026 at 1:31 pm

    The routes file does, in fact, get an entry determining the behavior of users (shown in listing 2.2). It gets created through the scaffolding described here.

    resources :users
    

    By convention a “resource” entry in your routes.rb file sets up a number of paths that will be associated with users. Refer to the Rails Guide for a good overview.

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

Sidebar

Related Questions

Background I admit, this question stems from an ultimate lack of deep understanding of
This stems from a previous question I asked - about a write conflict with
Following this question, it seems that it is possible to open a file from
I need a process with administrator privileges. From this question and answers it seems
Sorry if this question seems a bit complex but I think its all related
This actually stems from on my earlier question where one of the answers made
Sorry if this question seems obvious for everyone, but I am very new to
This stems from a previous question I asked regarding code metrics. I have been
This stems from an earlier SO question . If you are having to perform
Ok this question stems from this question: wp7: App failing! Can not figure out

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.