A developer arriving at Ruby on Rails from a more unopinionated framework often brings along an instinct to route around its conventions โ reorganizing file structure to match a personal preference, avoiding the naming conventions Rails expects in favor of custom ones, building configuration for things Rails already handles by default. This instinct is understandable coming from an environment where more configuration and structure is normal and expected, and it's usually the wrong move in Rails specifically, because Rails's core design philosophy โ "convention over configuration" โ isn't an aesthetic preference, it's a deliberate tradeoff that pays off specifically when you actually follow the conventions rather than working around them.
The Convention Is Doing Real Work, Not Just Enforcing a Style
Rails's naming conventions โ a model named Product automatically maps to a products table, a controller automatically finds its corresponding views by a predictable path โ aren't primarily about code style consistency, though that's a real secondary benefit. They exist so that a huge amount of connective configuration simply doesn't need to be written or maintained, because Rails can correctly infer it from the convention being followed. A developer who renames things to fit a personal preference isn't just introducing a stylistic inconsistency โ they're opting out of the inference that makes Rails fast to build in, and taking on the burden of writing and maintaining the configuration that convention was quietly handling for free. The productivity Rails is known for depends specifically on conventions being followed, not fought.
Fighting the Conventions Compounds Over Time
A single instance of working around a Rails convention is a small, manageable cost. The real problem is that this tends to compound: each deviation from convention often requires further deviations to stay consistent with the first one, and a codebase with enough of these accumulated departures from Rails's expected patterns starts to lose the specific advantage that made choosing Rails worthwhile in the first place โ new developers familiar with standard Rails conventions can no longer navigate the codebase by pattern recognition, because the codebase has drifted into its own bespoke set of patterns that only the team that built it understands. At that point, a team is paying Rails's learning curve cost without collecting the corresponding productivity benefit that following its conventions was supposed to provide.
Knowing When a Deviation Is Actually Warranted
None of this means Rails conventions are correct in literally every case โ there are genuine situations where a project's specific needs warrant deviating from a default Rails pattern, and Rails itself is flexible enough to support well-reasoned departures when they're actually necessary. The distinction worth making is between a deviation chosen deliberately, for a specific documented reason tied to the project's actual requirements, and a deviation made out of habit from a different framework's conventions, without a real reason specific to this project. The first is a legitimate engineering decision. The second is importing unfamiliarity-driven friction into a framework specifically designed to minimize exactly that kind of friction, and it's worth being honest with yourself about which one is actually happening before working around a Rails default.
The Broader Lesson About Opinionated Frameworks
Rails is a useful example of a more general principle worth applying to any genuinely opinionated framework or tool: its value proposition depends on actually adopting its opinions, not on treating them as optional suggestions to be selectively applied. A team that picks Rails for its productivity reputation and then spends real effort working around its core conventions is choosing the cost of an opinionated framework's learning curve without collecting the benefit that opinionation was supposed to provide โ a worse outcome, in most cases, than either fully committing to Rails's conventions or choosing a more flexible framework from the start and building the structure a project actually needs deliberately, rather than fighting a structure that was already offered for free.
Written by PerfectXPERTS's web engineering team, who have shipped 550+ projects since 2012 across React, Next.js, Laravel, and Python. Every technical claim in this article reflects patterns we've actually implemented in production, not general industry advice โ where we say something works a certain way, it's because we've built it that way for a real client.