forked from mhayashi/express-helpers
-
Notifications
You must be signed in to change notification settings - Fork 13
Home
tanema edited this page Apr 5, 2012
·
14 revisions
Most helpers (especially the inputs) follow one method for use
helper("name/id", [[value,] html_options])
The html_options is an associative array that basically get translated into html attributes
url_field_tag("input",{class:"url_field"})
=>
<input id='input' type='url' name='input' class='url_field' />
*NOTE: options listed for each helper are to be put into the html_options
#Markup and Utility
#Buttons
#Links
#Form_For
#Inputs and form elements
- checkbox_tag
- color_field_tag
- date_tag
- date_time_tag
- email_field_tag
- file_field_tag
- form_tag
- form_end_tag
- hidden_field_tag
- img_tag
- image_submit_tag
- label_for
- number_field_tag
- password_field_tag
- phone_field_tag / telephone_field_tag
- radio_tag
- reset_form_tag
- search_field_tag
- select_tag
- submit_tag
- text_area_tag / text_tag
- text_field_tag
- time_tag
- url_field_tag