Edit in JSFiddle

window.App = Em.Application.create()

# The newly added component object:

App.FormFieldComponent = Em.Component.extend
  type: (->
    if @get('label').match(/password/i)
      "password"
    else
      "text"
  ).property 'label'


App.ApplicationAdapter = DS.ActiveModelAdapter.extend()

App.ApplicationRoute = Em.Route.extend
  model: ->
    @store.createRecord 'user'

  actions:
    updateUser: ->
      alert "Updating user #{@currentModel.get 'name'}"


App.User = DS.Model.extend
  name:                 DS.attr 'string'
  email:                DS.attr 'string'
  password:             DS.attr 'string'
  passwordConfirmation: DS.attr 'string'
<script type="text/x-handlebars">
  <div class="container">
    <form {{action "updateUser" on="submit"}}>
      <h2>Create User</h2>

      {{form-field label="Name" value=name}}

      {{form-field label="Email" value=email}}

      {{form-field label="Password" value=password}}

      {{form-field label="Password Confirmation" value=passwordConfirmation}}

      <button class="btn btn-primary btn-block" type="submit">Save</button>

    </form>
  </div>
</script>

<script type="text/x-handlebars" data-template-name="components/form-field">
  <div class="form-group">
    <label {{bind-attr for=label}}>{{label}}</label>
    {{input type=type value=value id=label class="form-control"}}
  </div>
</script>