Type:
Module

This module provides methods for generating HTML that links views to assets such as images, javascripts, stylesheets, and feeds. These methods do not verify the assets exist before linking to them:

1
2
3
4
image_tag("rails.png")
# => <img alt="Rails" src="/assets/rails.png" />
stylesheet_link_tag("application")
# => <link href="/assets/application.css?body=1" media="screen" rel="stylesheet" />
image_tag
  • References/Ruby on Rails/Rails/Classes/ActionView/ActionView::Helpers/ActionView::Helpers::AssetTagHelper

image_tag(source, options={}) Instance Public methods Returns an

2025-01-10 15:47:30
image_alt
  • References/Ruby on Rails/Rails/Classes/ActionView/ActionView::Helpers/ActionView::Helpers::AssetTagHelper

image_alt(src) Instance Public methods Returns a string suitable for an html

2025-01-10 15:47:30
audio_tag
  • References/Ruby on Rails/Rails/Classes/ActionView/ActionView::Helpers/ActionView::Helpers::AssetTagHelper

audio_tag(*sources) Instance Public methods Returns an

2025-01-10 15:47:30
stylesheet_link_tag
  • References/Ruby on Rails/Rails/Classes/ActionView/ActionView::Helpers/ActionView::Helpers::AssetTagHelper

stylesheet_link_tag(*sources) Instance Public methods Returns a stylesheet link

2025-01-10 15:47:30
video_tag
  • References/Ruby on Rails/Rails/Classes/ActionView/ActionView::Helpers/ActionView::Helpers::AssetTagHelper

video_tag(*sources) Instance Public methods Returns an html video tag for the

2025-01-10 15:47:30
favicon_link_tag
  • References/Ruby on Rails/Rails/Classes/ActionView/ActionView::Helpers/ActionView::Helpers::AssetTagHelper

favicon_link_tag(source='favicon.ico', options={}) Instance Public methods Returns

2025-01-10 15:47:30
auto_discovery_link_tag
  • References/Ruby on Rails/Rails/Classes/ActionView/ActionView::Helpers/ActionView::Helpers::AssetTagHelper

auto_discovery_link_tag(type = :rss, url_options = {}, tag_options = {}) Instance Public methods

2025-01-10 15:47:30
javascript_include_tag
  • References/Ruby on Rails/Rails/Classes/ActionView/ActionView::Helpers/ActionView::Helpers::AssetTagHelper

javascript_include_tag(*sources) Instance Public methods Returns an

2025-01-10 15:47:30