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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T17:21:50+00:00 2026-06-02T17:21:50+00:00

I just recently started this ruby on rails tutorial to kick off my new

  • 0

I just recently started this ruby on rails tutorial to kick off my new adventure into a new language and following the tutorial I got stuck. After I edited my index.html.erb file to what the tutorial was doing my localhost server gave me a error

**Routing Error**
No route matches [GET] "/"

I honestly do not know how to debug this

This is what’s in the index file

<% @snippet.each do |snippet| %>
<h2><%= snippet.title %></h2>
<%end%>

And for my routes:

Josegomez::Application.routes.draw do
resources :snippets

Here is the video I been following it requires you to be a member though but I figured most would ask about it http://tutsplus.com/tutorial/how-to-deploy-your-first-rails-app/

Here is what I got when I typed rake routes

Jose-Gomezs-MacBook-Pro:josegomez josegomez$ rake routes
    snippets GET    /snippets(.:format)          snippets#index
             POST   /snippets(.:format)          snippets#create
 new_snippet GET    /snippets/new(.:format)      snippets#new
edit_snippet GET    /snippets/:id/edit(.:format) snippets#edit
     snippet GET    /snippets/:id(.:format)      snippets#show
             PUT    /snippets/:id(.:format)      snippets#update
             DELETE /snippets/:id(.:format)      snippets#destroy

Hey may be using a older version…

  • 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-02T17:21:52+00:00Added an answer on June 2, 2026 at 5:21 pm

    You need route to root

    Add this to routes.rb

    root :to => 'snippets#index'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm fairly new to coding and just recently started working on integrating functions into
I just recently started looking into WatiN and was following the example from http://www.codeproject.com/KB/aspnet/WatiN.aspx
I just recently started programming in Ruby on Rails, and I was wondering if
I've just recently started learning/using Ruby at work. I've got a super-simple test script
I just recently started diving into Real World Haskell and the book provides some
I'm new to Mono and just started recently. Is mono program are compiled from
Just recently I dove into the VideoLAN open source project. This was my first
I just recently started using this library (the one from CodePlex), but I ran
I just recently started toying with output buffering and seem to have run into
I recently started reading OpenGL Superbible 5th edition and noticed the following: Having just

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.