Open sourceActive

Rails API Mode

Rails configuration for building API-only applications that serve JSON resources.

Open source page

Product features

Product features

1.1. The Active Record Pattern

1.2. Object Relational Mapping

1.3. Active Record as an ORM Framework

1. What is Active Record?

2.1. Naming Conventions

2.2. Schema Conventions

2. Convention over Configuration in Active Record

3.1. Creating Namespaced Models

3. Creating Active Record Models

4. Overriding the Naming Conventions

Active Record Basics

API-only Application

Create Rails applications configured to start without browser features.

Caching

Provides page, action, and fragment caching.

Chapters

Generators

Generates models, controllers, tests, routes, and migrations in one command.

HEAD Requests

Transparently converts HEAD requests into GET and returns headers only.

Parameter Parsing

Decodes JSON and nested URL-encoded parameters into params.

Transparent Reloading

Supports transparent reloading even for large applications.