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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:23:34+00:00 2026-05-20T10:23:34+00:00

I am having a problem with my Rails application; it is not recognizing a

  • 0

I am having a problem with my Rails application; it is not recognizing a route that should exist. I’ve included resources :inquiries at the top of the routes.rb file, to ensure that there are the basic CRUD operations with my inquiries model, which is meant to catalog user-feedback for my website. When I try to render the view for the inquiry index, I get the following error in my browser:

`No route matches {:action=>"show", :controller=>"inquiries"}`

A simple $ rake routes from the console shows that this isn’t true: `

       users GET    /users(.:format)              {:action=>"index", :controller=>"users"}
             POST   /users(.:format)              {:action=>"create", :controller=>"users"}
    new_user GET    /users/new(.:format)          {:action=>"new", :controller=>"users"}
   edit_user GET    /users/:id/edit(.:format)     {:action=>"edit", :controller=>"users"}
        user GET    /users/:id(.:format)          {:action=>"show", :controller=>"users"}
             PUT    /users/:id(.:format)          {:action=>"update", :controller=>"users"}
             DELETE /users/:id(.:format)          {:action=>"destroy", :controller=>"users"}
    sessions POST   /sessions(.:format)           {:action=>"create", :controller=>"sessions"}
 new_session GET    /sessions/new(.:format)       {:action=>"new", :controller=>"sessions"}
     session DELETE /sessions/:id(.:format)       {:action=>"destroy", :controller=>"sessions"}
   inquiries GET    /inquiries(.:format)          {:action=>"index", :controller=>"inquiries"}
             POST   /inquiries(.:format)          {:action=>"create", :controller=>"inquiries"}
 new_inquiry GET    /inquiries/new(.:format)      {:action=>"new", :controller=>"inquiries"}
edit_inquiry GET    /inquiries/:id/edit(.:format) {:action=>"edit", :controller=>"inquiries"}
     inquiry GET    /inquiries/:id(.:format)      {:action=>"show", :controller=>"inquiries"}
             PUT    /inquiries/:id(.:format)      {:action=>"update", :controller=>"inquiries"}
             DELETE /inquiries/:id(.:format)      {:action=>"destroy", :controller=>"inquiries"}
     about        /about(.:format)              {:action=>"about", :controller=>"pages"}
      blog        /blog(.:format)               {:action=>"blog", :controller=>"pages"}
techniques        /techniques(.:format)         {:action=>"techniques", :controller=>"pages"}
   contact        /contact(.:format)            {:action=>"new", :controller=>"inquiries"}
   reviews        /reviews(.:format)            {:action=>"reviews", :controller=>"pages"}
    signup        /signup(.:format)             {:action=>"new", :controller=>"users"}
    signin        /signin(.:format)             {:action=>"new", :controller=>"sessions"}
   signout        /signout(.:format)            {:action=>"destroy", :controller=>"sessions"}
      root        /(.:format)                   {:action=>"home", :controller=>"pages"}`

I should mention that it is my /inquiries/ route that fails to load, and not an individual show page. The index.html.erb file is as follows:

'<h1>All Inquiries</h1>


<table>
  <tr>
    <th>Link</th>
    <th>Name</th>
    <th>Subject</th>
    <th>Body</th>
  </tr>
  <%= @inquiries.each do |inquiry| %>
    <tr>
       <td><%= link_to inquiry.id, inquiry_path %></td>
       <td><%= inquiry.name %></td>
       <td><%= inquiry.subject %></td>
       <td><%= inquiry.body[0..140] %>...</td>
    </tr>
  <% end %>
</table>`

Any ideas on why the application can’t find the route? Thanks in advance for your time.

  • 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-05-20T10:23:34+00:00Added an answer on May 20, 2026 at 10:23 am

    I think the problem is created by the line <td><%= link_to inquiry.id, inquiry_path %></td>

    By using inquiry_path, you should appoint an inquiry to be shown. So the path should be:

    <td><%= link_to inquiry.id, inquiry_path(inquiry) %></td>
    

    If you are using RESTful paths, you could simplify it to:

    <td><%= link_to inquiry.id, inquiry %></td>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having a problem with my rails install on ubuntu 11.04 and not
I'm having problem with Rails plugin attachment_fu . On every upload, I get validation
I'm having a problem with Rails 3.2.1, a nested resource keeps complaining about an
i'm having problem to deal with charset in ruby on rails app, specificially in
I'm having a problem in my Ruby on Rails app with a model where
I'm working through Agile Web Development with Rails and having a problem with Task
I'm having a really weird problem with my rails app and facebook's open graph
Having problem with the middle Div not expanding to the width http://acs.graphicsmayhem.com/images/middiv.jpg Ok, how
I'm trying to deploy my rails application with capistrano, but I'm having some trouble
I am having a ruby on rails application.I added a new section called reports

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.