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

  • Home
  • SEARCH
  • 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 9205225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:54:11+00:00 2026-06-17T23:54:11+00:00

The users controller is named UsersController for the simple reasons because it controls multiple

  • 0

The users controller is named UsersController for the simple reasons because it controls multiple users, but in reality doesn’t it change only a couple of parameters which are specific for the certain user?

Therefore, the most logical thing for me would then be that a controller names Dashboard should be named DashboardsController since it controls multiple Dashboards across numerous PC’s and because of the slight change in certain spesific field after rendering the page, for that reason it should be named Dashboards. Like Users are named Users and not User…

That brings me though back to the starting point. How do I decide what to choose; plural or singular? Dashboard is only one specific thing in the application, while users aren’t really controlling just their own, but again Dashboards are all different when the usernames get rendered on the page, as well as specific user favored tags.

What would be the best practice with this?

  • 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-17T23:54:13+00:00Added an answer on June 17, 2026 at 11:54 pm

    The rails convention is to define controller names using plural (e.g /dashboards). This isn’t set in stone, and you can change this to fit your needs, but if you’re asking what the best practice is, then your best bet is to stick with the rails convention, especially if you’re just getting started with rails. It will make your life much simpler.

    If you really want to use a singular term for your controller (e.g /dashboard), you can specify that in your routes.rb file (this assumes you’re using RESTful routes and defining dashboard as a resource)

    resource :dashboard, :controller => 'dashboard'
    

    Also note that if you decide to go with singular, you’ll need to adjust the helper methods rails creates for RESTful routes accordingly, so

      dashboards_path # will no longer work, you must use
      dashboard_path 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If one where to have a controller named UsersController with an action like: public
Im trying to use a named scope to set my users carrier but keep
I have a users controller. For a specific user I want to have something
I tried to create base controller and write in it: Ext.define('My.Users.controller.Role', { extend :
I'd like to have an Index action for a Users controller that takes an
I have controller users . In this controller I have action account which is
I have an entries controller that allows users to add contact information the website.
I have this simple code in my user_controller.rb file #listing all users def index
I have a form which users must fill out and submit. The controller action
My routes.php has the following line of code: Router::connect('/', array('controller' => 'users', 'action' =>

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.