last update: 2009-05-01 04:55:14 GMT This book is a work in progress; feel free to contribute.

The Merb Open Source Book
Français | 한국어 | 日本語 | Português | Deutsch | 中文 | Español | Русский | Bosanski | Nederlands | العربية | Български | Italiano

Table of Contents

Welcome to the Merb Open Source Book. The purpose of this book is simple: to guide beginners and advanced users through the Merb Framework.

In all honesty, this book won’t answer all of your questions about Merb or Ruby, let alone cover all of the use cases. However, with the help of the Ruby Community, we will be able to cover most of what you need to use Merb on a daily basis.

If you are learning through this material, or if you already use Merb frequently, please consider helping improve the content of this book.

  1. Front Matter

    1. Foreword By Yehuda Katz
    2. Preface by Matt Aimonetti
    3. Contributors
  2. Introduction

    1. Ruby Language
    2. Merb Web Framework
    3. DataMapper ORM
    4. RSpec testing framework
  3. Getting Started

    1. Install Instructions
    2. Generate an application
    3. Project structure
    4. MVC
    5. Controllers
    6. Views
    7. Models
    8. Request path
    9. Router
  4. Interacting with the database (DataMapper)

    1. Setting up the database connection
    2. Database Schema
    3. Database Queries
    4. Model Relationships
    5. Database Migrations
    6. Model Validations
  5. Interacting with the database (Active Record)

    1. Installation and setup
    2. Database Queries
  6. Interacting with the database (Sequel)

    1. Getting Started
    2. Database Migrations
    3. Data Retrieval and Manipulation
    4. Model Associations
    5. Model Validation
    6. Sequel Plugins
  7. Testing your application

    1. Why test
    2. Testing your models
    3. Testing your requests
    4. Integration testing with Cucumber
  8. Merb More

    1. Authentication
    2. Mailer
    3. Caching
    4. Exceptions
    5. Slices
  9. Recipes

    1. Simple Blog
    2. Building a Blog Slice
  10. Deployment

    1. Passenger
    2. nginx
    3. JRuby and Glassfish
    4. Bundling your Merb application