diff --git a/README.md b/README.md index ba9059c..35838b2 100644 --- a/README.md +++ b/README.md @@ -81,7 +81,7 @@ You can also extract attributes from array directly. ``` ruby # @people = People.all -json.array! @people :id :name +json.array! @people, :id, :name # => [ { "id": 1, "name": "David" }, { "id": 2, "name": "Jamie" } ] ```