README.md in json_api_client-1.1.1 vs README.md in json_api_client-1.2.0
- old
+ new
@@ -25,11 +25,11 @@
class Person < Base
end
end
```
-By convention, we figure guess the resource route from the class name. In the above example, `Article`'s path is "http://example.com/articles" and `Person`'s path would be "http://example.com/people".
+By convention, we guess the resource route from the class name. In the above example, `Article`'s path is "http://example.com/articles" and `Person`'s path would be "http://example.com/people".
Some basic example usage:
```ruby
MyApi::Article.all
@@ -202,10 +202,10 @@
[See specification](http://jsonapi.org/format/#fetching-sparse-fieldsets)
```ruby
# makes request to /articles?fields[articles]=title,body
-article = Article.select("title,body").first
+article = Article.select("title", "body").first
# should have fetched the requested fields
article.title
# => "Rails is Omakase"