Skip to content

Instantly share code, notes, and snippets.

Created April 10, 2014 17:07
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 anonymous/10402775 to your computer and use it in GitHub Desktop.
Save anonymous/10402775 to your computer and use it in GitHub Desktop.
{{input class="form-control col-lg-8" value=address}}
{{input class="form-control col-lg-8" value=domain}}
{{input class="form-control col-lg-8" value=destination}}
App.Url = DS.Model.extend Ember.Validations.Mixin,
address: DS.attr 'string'
destination: DS.attr 'string'
webmaster: DS.belongsTo 'webmaster'
url_type: DS.belongsTo 'url_type'
##
App.UrlNewRoute = Ember.Route.extend
actions:
save: ->
controller = @get('controller')
# webmaster url_type
url = @store.createRecord 'url', controller.getProperties('address destination domain'.w())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment