Skip to content

Instantly share code, notes, and snippets.

View jarkko's full-sized avatar

Jarkko Laine jarkko

View GitHub Profile
@jarkko
jarkko / gist:ab9b598ceace6bf7fe74
Created May 16, 2014 12:35
Adding a new record to a hasMany relationship
App.SplitPointController = Ember.ObjectController.extend(
actions: {
recordSplit: ->
split = @store.createRecord('splitTime',
timestamp: new Date
splitPoint: @get('model')
)
@get('model').get('splitTimes').addObject(
split.save()
module MetroUi.Widgets.Accordion exposing ( Model
, defaultAccordion
, update
, view )
import Html
import Html.App
import Html.Attributes as Attr
import MetroUi.Widgets.Frame as Frame