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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:04:41+00:00 2026-06-15T17:04:41+00:00

I am doing the very intro course in rails, and so far have completed

  • 0

I am doing the very intro course in rails, and so far have completed the following

  1. Made a new rails app: rails new shovell (“shovell” is the name of the app)
  2. Installed all the gems and what not: bundle install
  3. Generated a model rails generate model Story name link
  4. Generated a controller rails generate controller Stories index

And now when I point to http://localhost:3000/stories, I get a error that says “Routing Error
No route matches [GET] “/stories” “

And the following is my routes.rb:

Shovell::Application.routes.draw do
  get "stories/index"
# a bunch of comments
end

So I don’t know what Im doing wrong, and why its not showing up the default welcome message, but rather giving me an error. Thanks for your help!

  • 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-15T17:04:42+00:00Added an answer on June 15, 2026 at 5:04 pm

    However, if you do:

    http://localhost:3000/stories/index
    

    you may get the page, although that’s not the rails way.

    First thing, read and understand the rails routing guide

    Then in order to fix your code, on the routing you can write

    Shovell::Aplication.routes.draw do
      resources :stories
    end
    

    Or if you want custom routes instead of a rest resource

    Shovel::Application.routes.draw do
      match "stores", to: "my_controller#my_action"
    end
    

    And you can also name the custom route

    Shovel::Application.routes.draw do
      match "stores", to: "my_controller#my_action", as: :store_index
    end
    

    So with a name you can use the route name on your rails app

    link_to("Store Index", store_index_path)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm very much new to programming and have been doing fairly well so far.
I have the following PHP code doing a very simple select into a table.
I'm having some trouble doing a very simple task. I have a rich textbox
I have a very dynamic web app that is dynamically created controls at run-time.
I am very new to Django and, following their tutorial, I am having issues
I am doing very simple int division and I am getting odd results. This
I'm doing something very similar to the stackoverflow question preview only much more basic.
hello i m doing a very simple Asp.net application project namespace WebApplication1 { public
I find it very frustrating doing web development with Maven & Jetty using Eclipse,
After doing a project with WPF and getting very much attached to it's excellent

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.