yeoman/generator-ember — pull request #141 by smackesey (2013-12-18 11:08:15+00:00)
Title: Edit view input boxes

Fixed the issue with text input boxes not showing in the edit template. This was due to an attempt to access the url parameters of the parent route from the child route, which Ember does not allow you to do directly.

In the process of fixing this, I also discovered that the way editing was working seemed a little shady. Basically any changes made to the text inputs were immediately triggering direct changes on the model. I am new to this kind of programming but this seemed undesirable. The "Update" button was misleading, because it didn't actually update anything-- all the updates were already made by the time it was pressed; all it did was switch routes.

To fix this, I changed the underlying code to add a "buffer" to the edit controller that has all the same fields as the model. The TextFields are bound to the buffer rather than to the model itself, and the buffer is used to update the model when the "Update" button is pressed.

This removed the need for the `BoundTextFieldView`, which seemed like a kind of hack to implement the previous direct binding of edit text fields to model properties. I've left the `BoundTextFieldView` files in in case I'm missing something, but they're no longer being used by anything (they've been replaced by standard Ember `TextField` views in the edit template).