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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T11:35:20+00:00 2026-06-05T11:35:20+00:00

When you type rake routes in the shell it displays a nice list of

  • 0

When you type rake routes in the shell it displays a nice list of routes:

      new_edition GET    /editions/new(.:format)           editions#new
     edit_edition GET    /editions/:id/edit(.:format)      editions#edit
         edition GET    /editions/:id(.:format)           editions#show
                 PUT    /editions/:id(.:format)           editions#update
              DELETE /editions/:id(.:format)           editions#destroy

This is very helpful but why not show the actual code needed to be used in the app as well for example

 edition GET    /editions/:id(.:format)  editions#show  edition_path()

I am guess it is because there may be more to it then this but the general issue is when I look at the examples give for the routes I have look up an example of how it is expressly coded to understand what the route means…

  • 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-05T11:35:21+00:00Added an answer on June 5, 2026 at 11:35 am

    Using xxx_path directly isn’t the only option you have.

    Rails offers you resourceful way of building urls via polymorpic_path/_url methods. These methods are used by many other helpers, like:

    link_to 'Edit', [:edit, @user]     # instead of edit_user_path(@user)
    redirect_to Product                # instead of products_path
    form_for [@order, @product] do |f| # instead of order_product_path(@order, @product)
    visit url_for [:preview, @invoice] # instead of preview_invoice_path(@invoice)
    

    So, by looking at preview_invoice prefix you know what to do, but the exact way is up to you.

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

Sidebar

Related Questions

I'm having an issue with FasterCSV and my rake db:seeds migration. I get the
In a tutorial project I have started, when i type 'rake db:create' or 'where
I get this error when I run rake db:migrate *db/migrate//004_add_data_to_measurement_type_and_measurement_unit.rb:3: invalid multibyte char (US-ASCII)
In my routes.rb i have the following: get 'home/index' root :to => 'home#index' If
I have these urls: http://localhost:3000/assets http://localhost:3000/assets/new http://localhost:3000/assets/34 http://localhost:3000/assets/34/edit they work in my app. I
When I type, gem install pg, I get a message that the gem is
i get the error PGError: ERROR: type modifier is not allowed for type text
Im trying to rake db:schema:load but I get the error Mysql2::Error: Specified key was
Type.GetFields() does not return fields in a particular order, but I want to sort
type(3,) returns the int type, while t = 3, type(t) returns the tuple type.

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.