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…