controller routing configuration database migration great and easy way to start and build upon Run in console (one line): rails generate scaffold Post title:string body:text
basically, it decides: what request goes where? splits URI and forwards request to controller, e.g.: /posts/ goes to PostsController /comments/42 goes to CommentsController let‘s assume: it just works!
(single resource; displays values) new (form for creating a new resource) create (logic to create a new resource) edit (form for updating an existing resource) update (logic to update an existing resource) destroy (logic to delete an existing resource)
mixture of HTML tags plus embedded Ruby (ERB) access to all instance variables (@var) set by controller other formats (e.g. JSON, XML) possible as well rendered view is delivered to browser