Build your first Ruby on Rails app

8 steps · about 3 h 20 min · Beginner

  1. Follow Getting Started with Rails (tutorial, Rails Guides, 1 h)

    Builds a complete small app from rails new to working CRUD.

  2. Model data with Active Record (reference, Rails Guides, 20 min)

    Explains models, conventions and CRUD methods.

  3. Change the schema with migrations (reference, Rails Guides, 20 min)

    Versioned schema changes you can run and roll back.

  4. Validate data before saving (reference, Rails Guides, 15 min)

    Keeps bad input out and shows errors in forms.

  5. Map URLs to controllers (reference, Rails Guides, 20 min)

    Resourceful routes give you RESTful URLs in one line.

  6. Handle requests in controllers (reference, Rails Guides, 20 min)

    Covers params, strong parameters and sessions.

  7. Build forms with form helpers (reference, Rails Guides, 20 min)

    form_with ties forms to models and routes.

  8. Test models, controllers and system flows (tutorial, Rails Guides, 25 min)

    Rails ships with a test setup you can use from day one.