Created
November 7, 2014 14:40
-
-
Save SeanRoberts/ad2d285ba748c53a9493 to your computer and use it in GitHub Desktop.
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
OH.RealtorsIndexRoute = Ember.Route.extend | |
model: (params) -> | |
params.page ||= 1 | |
@store.find('realtor', { page: params.page }) | |
setupController: (controller) -> | |
$.get('/api/v1/realtors/cities.json').then (data) => | |
controller.set('cities', data.cities) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment