We have an example ember app where we CRUD recipes. For the route where we create a new Recipe, if we pass attributes into createRecord like so:
Cookbook.RecipesNewRoute = Ember.Route.extend
model: ->
Cookbook.Recipe.createRecord(title: "blank")
the recipe appears immediately in the list on the left side of the screen. Here's the jsbin to show what I mean
However, if I create the recipe without args a la
Cookbook.Recipe.createRecord()
I don't see the recipe appear in the list until I edit one of the attributes. This happens even though I've specified default values, as proved by this jsbin.
My question is: Why does this happen and how can I create a record with no params specified and still have it show up immediately?