Maybe this is the dumbest question ever but still - how to manually query server for the records of the certain model?
App.UrlNewRoute = Ember.Route.extend(
totally legitimate question,
you should query it using camelCase
:
this.store.find('urlType')
and your json key should be camelCase
also (you can also use a serializer to fix it up):
{
"urlTypes":[
{
"id":1,
"caption":"text link"
},
{
"id":2,
"caption":"guest post"
},
{
"id":3,
"caption":"blog comment"
},
{
"id":4,
"caption":"banner"
},
{
"id":5,
"caption":"profile"
},
{
"id":6,
"caption":"review"
}
]
}
http://emberjs.jsbin.com/OxIDiVU/301/edit