Skip to content

Instantly share code, notes, and snippets.

@kroofy
Created November 1, 2013 16:57
Show Gist options
  • Save kroofy/7268398 to your computer and use it in GitHub Desktop.
Save kroofy/7268398 to your computer and use it in GitHub Desktop.
App.DocumentsShowRoute = Ember.Route.extend(
setupController: (controller, model) ->
@._super()
controller.set('model', model)
model.get('documentAttributes').forEach (item, index, enumerable) ->
key = item.get('attrKey')
model.set(key, item)
{{input value=header.attrValue}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment