Skip to content

Commit 5055eeb

Browse files
committed
Update README.md
Seems you're talking about the file name here, though it said "class name".
1 parent 9e7d68d commit 5055eeb

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@ Or install it yourself as:
7777
Resources define the public interface to your API. A resource defines which attributes are exposed, as well as
7878
relationships to other resources.
7979

80-
Resource definitions should by convention be placed in a directory under app named resources, `app/resources`. The class
81-
name should be the single underscored name of the model that backs the resource with `_resource.rb` appended. For example,
80+
Resource definitions should by convention be placed in a directory under app named resources, `app/resources`. The file name should be the single underscored name of the model that backs the resource with `_resource.rb` appended. For example,
8281
a `Contact` model's resource should have a class named `ContactResource` defined in a file named `contact_resource.rb`.
8382

8483
#### JSONAPI::Resource

0 commit comments

Comments
 (0)