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

The Archive Base Latest Questions

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

I am using Rails 3.2.7. I have a controller and a action as it’s

  • 0

I am using Rails 3.2.7. I have a controller and a action as it’s shown below:

class BookController < ApplicationController

   def list
      @books = Book.find(:all)
   end

end

I also created a model with the name book.rb under model and a list.rhtml inside \app\views\book folder. When I hit http://127.0.0.1:3000/book/list, I am getting this error:

No route matches [GET] "/book/list"**

Here’s config/routes.rb:

Ravi::Application.routes.draw do
  # The priority is based upon order of creation:
  # first created -> highest priority.

  # rest of the explanations in default "config/routes.rb"
end
  • 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-11T13:31:36+00:00Added an answer on June 11, 2026 at 1:31 pm

    Your router config is all commented out, you need to add the rules yourself.

    Guiders: Routing

    Try add the below:

    resources :books do
      get 'list', :on => :collection
    end
    

    And access with: http://127.0.0.1:3000/books/list

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

Sidebar

Related Questions

Using Rails v2.1, lets say you have an action for a controller that is
I have a Rails 3 app that is trying to perform some controller action
I'm using Rails 3 I have a controller called subscriber_controller.rb I just added an
I have just created a controller using the command: rails generate controller LegacyPlanCalculator index
First of all, I'm using Rails 3.0.6 and Ruby 1.9.2 I have a controller
Using Rails 2.3.8. I have added this in my controller: filter_parameter_logging :password, :password_confirmation But
I using the Rails resource_controller plugin. I have a ReleasesController, which is nested within
Using Rails 3.2. I have an individual Shop post, and each shop has reviews.
I have a deployment using: rails 2.3.2 ruby 1.8.7 mysql db and 3 mongrel
I have such problem: I'm using rails, devise gem and jQuery validation plugin. I

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.