You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,8 +76,7 @@ Or install it yourself as:
76
76
Resources define the public interface to your API. A resource defines which attributes are exposed, as well as
77
77
relationships to other resources.
78
78
79
-
Resource definitions should by convention be placed in a directory under app named resources, `app/resources`. The class
80
-
name should be the single underscored name of the model that backs the resource with `_resource.rb` appended. For example,
79
+
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,
81
80
a `Contact` model's resource should have a class named `ContactResource` defined in a file named `contact_resource.rb`.
0 commit comments