Skip to content

Instantly share code, notes, and snippets.

@luan
Created March 14, 2012 18:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luan/2038297 to your computer and use it in GitHub Desktop.
Save luan/2038297 to your computer and use it in GitHub Desktop.
53467890tyuftyrtyru
{{#form_for user classes=”form-horizontal”}}
<legend>User Data:</legend>
{{input “name”}}
{{input “birthday” as=”date”}}
{{input “another_date” as=”string” mask=”##/##/####” component=”datepicker”}}
{{input “email”}}
{{input “gender” as=”select” collection=App.genders}}
{{input “categories” as=”checkboxes” collectionBinding=”App.categoriesController”}}
{{input “option” as=”radio_buttons” collectionBinding=”App.optionsController”}}
{{#fields_for books}}
{{input “title”}}
{{input “author”}}
{{remove_association “Remove Book” classes=”btn btn-danger”}}
{{/fields}}
{{add_association books text=“Add Book” classes=”btn btn-success”}}
{{submit “Save”}}
{{cancel “Reset”}}
{{/form}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment