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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T01:10:12+00:00 2026-06-11T01:10:12+00:00

There’s a config file config/initializers/inflections.rb that, as per this question lets you modify the

  • 0

There’s a config file config/initializers/inflections.rb that, as per this question lets you modify the puralization of certain items:
ruby on rails pluralization help?

However, I’m not interested in that. I want to turn the automatic modification of generated model names off.

Here’s an example:

rails generate scaffold UserData data1:string data2:string

Data is changed to ‘Datum’:

%] cat app/models/user_datum.rb 
class UserDatum < ActiveRecord::Base
  attr_accessible :data1, :data2
end

This is undesirable behaviour.

How do I turn it off?

Specifically if you can please; I’ve seen a few threads with people saying things like ‘you’ll have to modify the recipe for that’, but no actual guide to doing this.

(I appreciate people are going to want to start answering this with ‘you should just stick to the rails way of doing things, there’s a good reason for this and it’ll work out in the long run’; please dont)

  • 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-11T01:10:14+00:00Added an answer on June 11, 2026 at 1:10 am

    The best way of doing this is:

    rails generate scaffold HouseData --force-plural
    

    (it’s still an item by item fix, but it doesn’t mess around with the pluralization stuff, which is global and affects other parts of the app too)

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

Sidebar

Related Questions

There is a column that exists in 2 tables. In table 1, this column
There are nice SO question and answers about this issue, but these options didn't
I know there's a lot of other questions out there that deal with this
There are plenty of questions and answers to this like this question but I
There is a moment in my app, that I need to force to show
There was a similar question posted asking in general about alternatives to Qt. Well,
There are a lot of blogs saying that a hasOwnProperty check should be used
There is a website called Gild.com that has different coding puzzles/challenges for users to
There is this strange situation I'm fighting on. I have 3 pages, les call
There is no doubt that MonoTouch is one of the great cross-compiler(s). Similarly, SenchaTouch

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.