Skip to content

Instantly share code, notes, and snippets.

@dagda1
Last active December 12, 2015 10:19
Show Gist options
  • Save dagda1/4758144 to your computer and use it in GitHub Desktop.
Save dagda1/4758144 to your computer and use it in GitHub Desktop.
WZ.ExercisesNewRoute = Em.Route.extend
model: ->
WZ.Exercise.createRecord()
WZ.ExercisesEditRoute = Em.Route.extend
model: (params) ->
WZ.Exercise.find(params.exercise_id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment