Convention over Configuration

The Rails Doctrine

Rails' defining idea: sensible defaults instead of endless setup.

Convention over Configuration is the principle at the heart of Rails: if you follow the framework’s sensible naming and layout conventions, it wires things together for you, so you write far less boilerplate. Name your table and class the expected way, and it just connects. It was a genuinely influential idea that spread well beyond Ruby into frameworks in many other languages. (The Rails Doctrine)

Related: "Rails is omakase" · "How to build a blog in 15 minutes with Rails" (DHH, 2005)

Sources

Sources

  • The Rails Doctrine: https://rubyonrails.org/doctrine

See a mistake? Edit this page on GitHub