With the following problem I got stuck now for days. My use case is that I have a database with millions of addresses. From an web-application I would like to search them, d
To take advantage of ember data you could do it this way. Assuming you have a model like this:
App.SearchResult = DS.Model.extend({
firstName: DS.attr('string'),
lastName: DS.attr('string'),
city: DS.attr('string')
});
and then you do in your Route's model hook you do this:
App.SearchResultsRoute = Ember.Route.extend({
model: function(params){
return App.SearchResult.find({firstName:params.firstName,lastName:params.lastName,city:params.city})
}
});
this way the RESTAdapter will automatically issue a request like your example:
http://localhost/#/searchresults?firstname=xxx&lastname=xxx&city=xxx
Hope it helps