Skip to content

Commit

Permalink
Fixed docs
Browse files Browse the repository at this point in the history
  • Loading branch information
undr committed Jun 22, 2014
1 parent f764c20 commit b6de5c3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Expand Up @@ -106,6 +106,12 @@ class Post < ActiveRecord::Base
end
```

#### 2. Specify the serializer when you render the object:

```ruby
render :json => @post, :serializer => FancyPostSerializer
```

## Arrays

In your controllers, when you use `render :json` for an array of objects, AMS will
Expand Down

0 comments on commit b6de5c3

Please sign in to comment.