Skip to content

Instantly share code, notes, and snippets.

@stevekane
Last active December 16, 2015 23:28
Show Gist options
  • Save stevekane/5513628 to your computer and use it in GitHub Desktop.
Save stevekane/5513628 to your computer and use it in GitHub Desktop.
quick route example
App.Route.map () ->
@resource "clients"
@resource "client"
@resource "coaches"
@resource "coach"
@resource "coachedclients", {path: '/clients'}
App.Coachedclients = Ember.Route.extend
model: (params) ->
return App.Client.find(coach: @modelFor('coach'))
setupController: (controller, model) ->
@controllerFor("clients").set('content', model)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment