Intern Track Roadmap

Capstone: personal blog

This capstone builds a small personal blog in Rails by hand, one step at a time. The blog has one Article model with title, body and published_at columns, plus four actions: index, show, new and create. The lessons cover the migration and a validated model, a narrowed route, the controller, index and show rendered through a shared partial, and a form that connects new and create. The views are then styled with this project's Tailwind design tokens. A closing lesson compares the result with a scaffold-generated version.

What you'll learn

  • ✓Writing a migration and an Article model with a presence validation
  • ✓Narrowing resources routes with only: and writing four controller actions
  • ✓Handling create with a redirect on success and a 4xx status on failure
  • ✓Sharing one partial between index and show, with ERB escaping
  • ✓Building a form with form_with model: and showing validation errors
  • ✓Styling views with Tailwind utilities generated from design tokens
Free preview · Lesson 1 2 min read

Planning the blog: one model, four actions

Scaffolding: rapid prototyping ended by generating a complete Article feature in one command: migration, model, seven controller actions and six view files. Then it listed what still needed work: no validations, a permit list that trusted every column, and views with no connection to this project's…

Read the full lesson free →

Curriculum

7 lessons
Type to start searching...