rubyguides

Tutorial series

Hanami Basics

4 tutorials — follow in order for the best learning path.

  1. Getting Started with Hanami 2: Build Modern Ruby Web Apps

    Getting started with Hanami 2, a modern Ruby web framework for fast, modular apps. Covers installation, project structure, actions, views, routes, and params.

  2. Hanami Actions and Views: Handle Requests and Render Responses

    Learn Hanami actions and views: handle HTTP requests, work with route and query parameters, render templates, and return JSON responses in Hanami 2.

  3. ROM Persistence in Hanami: Relations, Repositories, Commands

    Learn how to use ROM persistence in Hanami 2 applications with practical examples for relations, repositories, entities, migrations, and transactions.

  4. Hanami Slices: Modular Code Organisation for Ruby Apps

    Learn organising code with Hanami slices for modular apps. Create domain boundaries, share code between features, and keep your architecture clean.