Rembering Knowing all the helpers Ruby on Rails provides is hard. Trying to find Rails helpers when you’re not sure what you’re looking for is even harder. I’ve put together the complete list of helpers available in Ruby on Rails 5.0.2
Ruby on Rails Helpers (Modules):
AssetTag
- audio_tag
- auto_discovery_link_tag
- favicon_link_tag
- image_alt
- image_tag
- javascript_include_tag
- stylesheet_link_tag
- video_tag
AssetUrl
- asset_path
- asset_url
- audio_path
- audio_url
- compute_asset_extname
- compute_asset_host
- compute_asset_path
- font_path
- font_url
- image_path
- image_url
- javascript_path
- javascript_url
- path_to_asset (asset_path alias)
- path_to_audio (audio_path alias)
- path_to_font (font_path alias)
- path_to_image (image_path alias)
- path_to_javascript (javascript_path alias)
- path_to_stylesheet (stylesheet_path_alias)
- path_to_video (video_path_alias)
- stylesheet_path
- stylesheet_url
- url_to_asset (asset_url alias)
- url_to_audio (audio_url alias)
- url_to_font (font_url alias)
- url_to_image (image_url alias)
- url_to_javascript (javascript_url alias)
- url_to_stylesheet (stylesheet_url_alias)
- url_to_video (video_url_alias)
- video_path
- video_url
AtomFeed
Cache
Capture
Csrf
- csrf_meta_tag (csrf_meta_tags alias)
- csrf_meta_tags
Date
- date_select
- datetime_select
- distance_of_time_in_words
- distance_of_time_in_words_to_now
- select_date
- select_datetime
- select_day
- select_hour
- select_minute
- select_month
- select_second
- select_time
- select_year
- time_ago_in_words
- time_select
- time_tag
Debug
Form
- check_box
- color_field
- date_field
- datetime_field
- datetime_local_field (datetime_field alias)
- email_field
- fields_for
- file_field
- form_for
- hidden_field
- label
- month_field
- number_field
- password_field
- phone_field (telephone_field alias)
- radio_button
- range_field
- search_field
- telephone_field
- text_area
- text_field
- time_field
- url_field
- week_field
FormOptions
- collection_check_boxes
- collection_radio_buttons
- collection_select
- grouped_collection_select
- grouped_options_for_select
- option_groups_from_collection_for_select
- options_for_select
- options_from_collection_for_select
- select
- time_zone_options_for_select
- time_zone_select
FormTag
- button_tag
- check_box_tag
- color_field_tag
- date_field_tag
- datetime_field_tag
- datetime_local_field_tag (datetime_field_tag alias)
- email_field_tag
- field_set_tag
- file_field_tag
- form_tag
- hidden_field_tag
- image_submit_tag
- label_tag
- month_field_tag
- number_field_tag
- password_field_tag
- phone_field_tag (telephone_field_tag alias)
- radio_button_tag
- range_field_tag
- search_field_tag
- select_tag
- submit_tag
- telephone_field_tag
- text_area_tag
- text_field_tag
- time_field_tag
- url_field_tag
- utf8_enforcer_tag
- week_field_tag
Javascript
- escape_javascript
- j (escape_javascript alias)
- javascript_tag
Number
- number_to_currency
- number_to_human
- number_to_human_size
- number_to_percentage
- number_to_phone
- number_with_delimiter
- number_with_precision
OutputSafety
RecordTag
- content_tag_for
- div_for
Rendering
Sanitize
Tag
Text
- concat
- current_cycle
- cycle
- excerpt
- highlight
- pluralize
- reset_cycle
- safe_concat
- simple_format
- truncate
- word_wrap
Translate
Url
Ruby on Rails Helpers (Classes):
FormBuilder
- _to_partial_path
- button
- check_box
- collection_check_boxes
- collection_radio_buttons
- collection_select
- date_select
- datetime_select
- emitted_hidden_id?
- fields_for
- file_field
- grouped_collection_select
- hidden_field
- label
- multipart=
- new
- radio_button
- select
- submit
- time_select
- time_zone_select
- to_model
- to_partial_path