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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T00:37:13+00:00 2026-06-02T00:37:13+00:00

I am pretty new to rails and basically I want to make a user

  • 0

I am pretty new to rails and basically I want to make a user registration form.

I am currently using rails 3.2.3

Basically I want to make basic routes like user/register on top of basic REST route for user.

Here are my routes.rb

resources :user do
  collection do
    get 'register'
  end
end

And here are my rake routes:

     register_user_index GET    /user/register(.:format)   user#register
     user_index GET    /user(.:format)            user#index
                POST   /user(.:format)            user#create
       new_user GET    /user/new(.:format)        user#new
      edit_user GET    /user/:id/edit(.:format)   user#edit
           user GET    /user/:id(.:format)        user#show
                PUT    /user/:id(.:format)        user#update
                DELETE /user/:id(.:format)        user#destroy

From my understanding, since register user is on top of show, it should match with register first before going to show.

However, when I try to do localhost:3000/user/register, it gives me this error:

No route matches {:action=>”show”, :controller=>”user”}

Can somebody help me with this?

Thanks!!

  • 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-02T00:37:15+00:00Added an answer on June 2, 2026 at 12:37 am

    (I would make this a comment, but I need the markup for the code example.)

    I tried your routes using Rails 3.1.4 and it worked like you expected.

    I notice you are using a string instead of a symbol. The more standard way is:

    resources :users do
      collection do
        get :register
      end
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know this is a basic RTFM question but I'm pretty new to rails
I'm pretty new to Rails, so I apologize if my question doesn't make the
I am pretty new in rails, I am facing the following issue, I want
I am still pretty new to Rails and am working on a basic app
I'm pretty new to rails and it's the first time I'm actually using authlogic
Pretty new to rails and I was building my routes to get a nested
I'm working on a classified listing style website and I'm pretty new to Rails...
I'm pretty new to Ruby on Rails. I changed this thread, because i recognized
I'm pretty new to Javascript, Rails and JQuery all working together. I'm going through
I'm working on creating my first plugin for rails. I'm still pretty new to

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.