So, this project is really awesome coming to Ember from Rails. Just wanted to get that out there.
I ran this command:
ember generate --scaffold todo title:string complete:boolean
This correctly got the data type in the model (complete: DS.attr('boolean')), but a boolean should render a checkbox in the view. Instead, it was a text field, like so:
<p>
<label for="complete">Complete</label><br>
{{view Ember.TextField valueBinding="complete" id="complete"}}
</p>
So, this project is really awesome coming to Ember from Rails. Just wanted to get that out there.
I ran this command:
ember generate --scaffold todo title:string complete:booleanThis correctly got the data type in the model (
complete: DS.attr('boolean')), but a boolean should render a checkbox in the view. Instead, it was a text field, like so: