Last active
December 17, 2015 18:40
-
-
Save SweeD/5655281 to your computer and use it in GitHub Desktop.
DS.RESTAdapter plurals configuration (Ember-Data)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DS.RESTAdapter.configure("plurals", | |
galleries: "galleries" # If your model is called App.Galleries | |
gallery: "galleries" # If your model is called App.Gallery | |
) |
Do the configuration block before the DS.RESTAdapter.create.
Switching DS.RESTAdapter.configure( ...
and App.Store = DS.Store.extend({
do the trick.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is what my code looks like now, your plurals is the same as the docs and doesn't do anything:
The URL is
/#/galleries
the call being made to the server is/api/galleriess