RSSAmplifier

Andy Croll · Mar 16, 2026

Declare Acronyms in Rails Inflections

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

A lot of Rails’s naming magic comes from its clever use of inflections. user.rb defines the User class, backed by the users table, managed by UsersController , accessible at the /users/ routes. Every Rails app generates config/initializers/inflections.rb to let you customise this behaviour. Most developers leave it empty. Then one day you namespace a controller under API and Rails starts…

Read on andycroll.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.