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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:15:38+00:00 2026-06-17T09:15:38+00:00

For some reason when I ran rails generate resource admin on my new Rails

  • 0

For some reason when I ran rails generate resource admin on my new Rails app, Rails generated a resource called admins. Is there any reason for it doing this? I would like the resource to be called admin, not admins.

Here is the output of running rails generate resource admin:

invoke  active_record
create    db/migrate/20130117002055_create_admins.rb
create    app/models/admin.rb
invoke    test_unit
create      test/unit/admin_test.rb
create      test/fixtures/admins.yml
invoke  controller
create    app/controllers/admins_controller.rb
invoke    erb
create      app/views/admins
invoke    test_unit
create      test/functional/admins_controller_test.rb
invoke    helper
create      app/helpers/admins_helper.rb
invoke      test_unit
create        test/unit/helpers/admins_helper_test.rb
invoke    assets
invoke      coffee
create        app/assets/javascripts/admins.js.coffee
invoke      scss
create        app/assets/stylesheets/admins.css.scss
invoke  resource_route
route    resources :admins
  • 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-17T09:15:39+00:00Added an answer on June 17, 2026 at 9:15 am

    Rails follows a plural naming convention by default if you wish to override this you can use custom inflection rules or edit the enviroment.rb file both ways can be found in “How do I override rails naming conventions?“.

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

Sidebar

Related Questions

Created a new app with rails generate new_app -T and ran rails generate rspec:install
For some reason there's a variable called d that is defined immediately after I
For some reason I can't detect I can't set a z index for any
After tinkering a bit, I've ran into a small visual snag. For some reason,
I've written an unhandled error module for my iPhone app, but for some reason
I ran the following commands: rails generate scaffold order name:string address:text email:string pay_type:string rails
I was trying to put a new Rails app on Heroku, and had deleted
I'm doing some tests with forms and ran into a snag, I have a
I have a bunch of migrations, but due to some weird reason, rails suddenly
I am creating an android app in eclipse and for some reason the .AgainActivity

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.