Build your first Ruby on Rails app
8 steps · about 3 h 20 min · Beginner
- Follow Getting Started with Rails (tutorial, Rails Guides, 1 h)
Builds a complete small app from rails new to working CRUD.
- Model data with Active Record (reference, Rails Guides, 20 min)
Explains models, conventions and CRUD methods.
- Change the schema with migrations (reference, Rails Guides, 20 min)
Versioned schema changes you can run and roll back.
- Validate data before saving (reference, Rails Guides, 15 min)
Keeps bad input out and shows errors in forms.
- Map URLs to controllers (reference, Rails Guides, 20 min)
Resourceful routes give you RESTful URLs in one line.
- Handle requests in controllers (reference, Rails Guides, 20 min)
Covers params, strong parameters and sessions.
- Build forms with form helpers (reference, Rails Guides, 20 min)
form_with ties forms to models and routes.
- Test models, controllers and system flows (tutorial, Rails Guides, 25 min)
Rails ships with a test setup you can use from day one.