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

  • Home
  • SEARCH
  • 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 8446535
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T09:57:39+00:00 2026-06-10T09:57:39+00:00

Very often in a rails project, I have a ‘content’ controller that houses miscellaneous

  • 0

Very often in a rails project, I have a ‘content’ controller that houses miscellaneous pages like the about us page and the contact us page and the intro page, etc.

I usually do something like

match '/content/:action', :controller => 'content'

in the routes.rb file, but I’m at a loss as to how to reference it inside my views.

What is the intended way to reference them?
Is it:

= link_to "Help", '/dashboard/help'

Or do I need to create a named route for each of these things?

  • 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-10T09:57:40+00:00Added an answer on June 10, 2026 at 9:57 am

    No, you don’t need the named route, but it is the convention. You can do the following as well:

    <%= link_to "Help", {controller: 'dashboard', action: 'help' } %></li>
    

    And in the routes file it would look like:

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

    As long as you map it somehow, even doing resources :dashboard it will work. For a little extra help here’s the guide on Routing in Rails. You can also list all your routes using the rake routes command and it will list the routes like so:

     help        /help(.:format)                static_pages#help
         about        /about(.:format)               static_pages#about
       contact        /contact(.:format)             static_pages#contact
    

    Which means, in this case, you can use help_path, about_path and contact_path.

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

Sidebar

Related Questions

very often I like to have my movieclip code inside the movieclip (on a
I have a rails application that occasionally needs to do very slow network calls
I have a Rails application that has to co-exist with a very old legacy
Very often I need something like that: foreach (Line line in lines) { if
I am very often write menu like that: User clicks on menu item and
Very often, I find myself using a callback function and I don't have its
I have the following line of code called very often: var configValue = System.Configuration.ConfigurationManager.AppSettings[ConfigValueKey];
very often in Internet I see links like this: www.abcde.com/~main/material/hello and this part ~main/material/hello
Very often you have a function, which for given arguments can't generate valid result
I have been using Rails for over 4 years so obviously I like Rails

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.