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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:10:56+00:00 2026-05-30T18:10:56+00:00

I have a fair amount of singleton routes in a Ruby on Rails app,

  • 0

I have a fair amount of singleton routes in a Ruby on Rails app, for example:

resource :sessions, :only => [:new, :create, :destroy]
resource :avatars, :only => [:edit, :update]

but the resources themselves are named using the plural form (avatars instead of avatar). I remember reading that this is the way I should do it (somewhere in Rails’ documentation) but it always bothered me: I’d rather type edit_avatar_path rather than edit_avatarS_path. Not that it looks ugly (it does), but I tend to forget the plural and get errors.

Now I’m reading the book The Rails 3 Way and in there it explains singular or singleton resources and just shows this code:

resource :profile

and shows the methods profile_path and edit_profile_path without giving any further explanation whether using the singular name would cause any trouble or not.

Can anybody enlighten me in whether there’s any potential issues by using the singular name? Any advantages to using the plural?

  • 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-30T18:10:58+00:00Added an answer on May 30, 2026 at 6:10 pm

    I’m fairly certain using the singular name for singular resources is correct. The Rails Routing Guides appears to confirm this, as does the Rails API documentation for resource.

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

Sidebar

Related Questions

I've noticed that google app engine seems to have a fair amount of downtime
I'm creating an app that will have a fair amount of users. Everytime someone
I am fairly new to Perl programming, but I have a fair amount of
I have a GPS app that already uses a fair amount of battery. Because
I'm writing some tests in Perl which have a fair amount of set up.
I have been using the Rails console a fair bit lately and its making
I have very little programming knowledge; only a fair bit in Visual Basic. How
I do a lot of JRuby on Rails apps, and we have a fair
I have a fair amount of Facebook development experience, but this had made me
I have a fair amount of questions and my first one is how can

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.