Menu

Ruby on Rails Explained: Web Apps by Convention, Not Configuration
📰

Ruby on Rails Explained: Web Apps by Convention, Not Configuration

DEV Community: beginners·The Practical Developer·about 1 month ago
#zQRt1zyw
#devtobeginners#devto#dev#rails#database
Long article (435 words) — no AI summary yet.
Reading 0:00
15s threshold

Introduction

Most web frameworks give you pieces and ask you to wire them together. Ruby on Rails, released in 2004 by David Heinemeier Hansson from the Basecamp codebase, gives you the whole app structure up front: where models live, how URLs map to code, and how database tables become objects. That opinionated structure is the point. Follow the conventions and a small team can ship a complete web app, database, pages, forms, and email, in days rather than weeks.

Convention over configuration, MVC, and Active Record

Rails rests on a few distinctive ideas:

Convention over configuration : file names, class names, and table names follow patterns, so Rails can guess what you mean instead of asking you to spell it out.

MVC, built in : models hold data and rules, controllers handle requests, views render pages, and the three have a fixed home in every Rails app.

Active Record : a database table becomes a class, a row becomes an object, and queries read like plain Ruby instead of SQL strings.

Everything in…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.