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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T00:51:27+00:00 2026-05-20T00:51:27+00:00

I have another very puzzling question that has cropped up after my upgrade from

  • 0

I have another very puzzling question that has cropped up after my upgrade from Rails 2.3.4 to Rails 3.0.3.

I am calling a ‘show’ controller method with the following URL:

/verse/10

and I see this in the terminal

Started GET “/verse/10” for 127.0.0.1
at 2011-01-27 16:17:58 -0800

Processing by VersesController#show
as HTML
* Searching for verse with ID:

Rendered verses/show.html.erb within
layouts/application (76.6ms)

Completed 200 OK in 1006ms (Views:
125.4ms | ActiveRecord: 9.8ms)

The verse show method is very simple:

  def show
    logger.debug("*** Searching for verse with ID: #{params[:id]}")
    @vs = Verse.find(params[:id])
  end

The route is defined as follows:

match '/verse/:id', :to => 'verses#show', :as => 'verse'

The problem: the parameter, ID, which in this case is ’10’, is not being passed in to the controller method and so a 404 is being thrown because params[:id] is nil.

The output from “rake routes | grep verse” is as follows:

verse /verse/:id(.:format) {:controller=>”verses”, :action=>”show”}

I’ve spent ages on this but feel as though I’m missing something very obvious.


Here is the full rake routes output:

                   login        /login(.:format)                                  {:controller=>"sessions", :action=>"new"}
                  logout        /logout(.:format)                                 {:controller=>"sessions", :action=>"destroy"}
                register        /register(.:format)                               {:controller=>"users", :action=>"create"}
                  signup        /signup(.:format)                                 {:controller=>"users", :action=>"new"}
                activate        /activate/:activation_code(.:format)              {:activation_code=>nil, :controller=>"users", :action=>"activate"}
         forgot_password        /forgot_password(.:format)                        {:controller=>"passwords", :action=>"new"}
         change_password        /change_password/:reset_code(.:format)            {:controller=>"passwords", :action=>"reset"}
        open_id_complete GET    /opensession(.:format)                            {:controller=>"sessions", :action=>"create"}
          open_id_create GET    /opencreate(.:format)                             {:controller=>"users", :action=>"create"}
                   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"}
               passwords GET    /passwords(.:format)                              {:action=>"index", :controller=>"passwords"}
                         POST   /passwords(.:format)                              {:action=>"create", :controller=>"passwords"}
            new_password GET    /passwords/new(.:format)                          {:action=>"new", :controller=>"passwords"}
           edit_password GET    /passwords/:id/edit(.:format)                     {:action=>"edit", :controller=>"passwords"}
                password GET    /passwords/:id(.:format)                          {:action=>"show", :controller=>"passwords"}
                         PUT    /passwords/:id(.:format)                          {:action=>"update", :controller=>"passwords"}
                         DELETE /passwords/:id(.:format)                          {:action=>"destroy", :controller=>"passwords"}
                 session POST   /session(.:format)                                {:action=>"create", :controller=>"sessions"}
             new_session GET    /session/new(.:format)                            {:action=>"new", :controller=>"sessions"}
            edit_session GET    /session/edit(.:format)                           {:action=>"edit", :controller=>"sessions"}
                         GET    /session(.:format)                                {:action=>"show", :controller=>"sessions"}
                         PUT    /session(.:format)                                {:action=>"update", :controller=>"sessions"}
                         DELETE /session(.:format)                                {:action=>"destroy", :controller=>"sessions"}
                  quests GET    /quests(.:format)                                 {:action=>"index", :controller=>"quests"}
                         POST   /quests(.:format)                                 {:action=>"create", :controller=>"quests"}
               new_quest GET    /quests/new(.:format)                             {:action=>"new", :controller=>"quests"}
              edit_quest GET    /quests/:id/edit(.:format)                        {:action=>"edit", :controller=>"quests"}
                   quest GET    /quests/:id(.:format)                             {:action=>"show", :controller=>"quests"}
                         PUT    /quests/:id(.:format)                             {:action=>"update", :controller=>"quests"}
                         DELETE /quests/:id(.:format)                             {:action=>"destroy", :controller=>"quests"}
                   index        /home(.:format)                                   {:controller=>"verses", :action=>"index"}
            starter_pack        /starter_pack(.:format)                           {:controller=>"verses", :action=>"starter_pack"}
                   *verse        /verse/:id(.:format)                                 {:controller=>"verses", :action=>"show"}*
               tag_cloud        /tag_cloud(.:format)                              {:controller=>"verses", :action=>"tag_cloud"}
          show_user_info        /show_user_info(.:format)                         {:controller=>"admin", :action=>"show_user_info"}
               show_tags        /show_tags(.:format)                              {:controller=>"admin", :action=>"show_tags"}
                 contact        /contact(.:format)                                {:controller=>"info", :action=>"contact"}
                     faq        /faq(.:format)                                    {:controller=>"info", :action=>"faq"}
                tutorial        /tutorial(.:format)                               {:controller=>"info", :action=>"tutorial"}
               volunteer        /volunteer(.:format)                              {:controller=>"info", :action=>"volunteer"}
             leaderboard        /leaderboard(.:format)                            {:controller=>"info", :action=>"leaderboard"}
              stateboard        /stateboard(.:format)                             {:controller=>"info", :action=>"stateboard"}
            countryboard        /countryboard(.:format)                           {:controller=>"info", :action=>"countryboard"}
           referralboard        /referralboard(.:format)                          {:controller=>"info", :action=>"referralboard"}
                    news        /news(.:format)                                   {:controller=>"info", :action=>"news"}
          update_profile        /update_profile(.:format)                         {:controller=>"profile", :action=>"update_profile"}
               referrals        /referrals/:id(.:format)                          {:controller=>"profile", :action=>"referrals"}
             unsubscribe        /unsubscribe/*email(.:format)                     {:controller=>"profile", :action=>"unsubscribe"}
                edit_tag        /edit_tag/:id(.:format)                           {:controller=>"tag", :action=>"edit_tag"}
                  tweets        /tweets(.:format)                                 {:controller=>"tweets", :action=>"index"}
           load_progress        /load_progress/:user(.:format)                    {:controller=>"chart", :action=>"load_progress"}
                    root        /(.:format)                                       {:controller=>"sessions", :action=>"new"}
                    home        /home(.:format)                                   {:controller=>"sessions", :action=>"new"}
                                /:controller(/:action(/:id))(.:format)  
  • 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-20T00:51:28+00:00Added an answer on May 20, 2026 at 12:51 am

    If you have the open_id_authentication plugin installed, that is likely interfering with your routes.

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

Sidebar

Related Questions

I have a very old project that includes the source from another project directly,
good fellas. I have another very basic question that I need help with. I
I have to migrate a very large dataset from one system to another. One
I have one script that loads very quickly, but I have another script that
i have another question open here on SO and after thinking about it, i
I have a Form with a listview. After calling Form.Show I need to update
I have another WPF databinding question... one that I haven't found an answer to
I have another beginner's question that hopefully someone can help with. I'm trying to
We have some software which relied on certain behavior from another ( very commonly
Sorry if my last question is very similar, but I have another query of

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.