Created
May 12, 2011 21:28
-
-
Save cohitre/969496 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app/helpers/templates/form_templates.haml | |
- define_template :labeled_text do |form, field_name, label, options| | |
.text-field | |
= form.label field_name, label | |
= form.text_field field_name, options | |
- define_template :labeled_text_area do |f, field_name, label, options| | |
.text-field | |
= form.label field_name, label | |
= form.text_area field_name, options |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment