New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
camelCased URL being requested from REST API instead of hyphenated URL #2906
Comments
can you should how the link is being generated? |
no |
I'm trying to render an applicant by going to the route for an applicant. I'm not doing anything else. |
is "going" via direct URL manipulation in the address bar, or via link-to, or via transitionTo or.. |
Direct URL in the address bar. |
ah, this is the API request that is incorrect. For some reason I though this was the page you navigated to. |
Apologies if I was unclear. FWIW, I've worked around the issue with this code (via @bmac): export default DS.RESTAdapter.extend({
pathForType: function(type) {
var dasherized = Ember.String.dasherize(type);
return Ember.String.pluralize(dasherized);
}
}); |
emberjs/data#2318 would fix this |
ember-data bug |
I'm using v0.1.5 of ember-cli with a pod structured app.
app/pods/applicant/model.js
contains a relationship whereDS.belongsTo('applicant-state', {async: true})
.app/pods/applicant-state/model.js
is uninteresting in every conceivable way.When I try to display an applicant, I see a console error like
GET http://api.loc/applicantStates/8 404 (Not Found)
.Is the camelCasing normal?
My API URLs are all hyphenated, like
http://api.loc/applicant-states/8
The text was updated successfully, but these errors were encountered: