Skip to content

Instantly share code, notes, and snippets.

@radar
Created April 8, 2014 08:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save radar/10101402 to your computer and use it in GitHub Desktop.
Save radar/10101402 to your computer and use it in GitHub Desktop.
Blorgh.CommentsNewController = Ember.Controller.extend
content: ->
@store.createRecord('comment')
actions:
save: ->
route = this
@currentModel.save().then (model) ->
route.transitionTo('post', model)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment