Module: Imgix::Rails::ViewHelper
- Includes:
- UrlHelper
- Defined in:
- lib/imgix/rails/view_helper.rb
Instance Method Summary collapse
- #ix_image_tag(source = nil, path, tag_options: {}, url_params: {}, srcset_options: {}, attribute_options: {}) ⇒ Object
- #ix_picture_tag(source = nil, path, tag_options: {}, img_tag_options: {}, url_params: {}, breakpoints: {}, srcset_options: {}) ⇒ Object
Methods included from UrlHelper
Instance Method Details
#ix_image_tag(source = nil, path, tag_options: {}, url_params: {}, srcset_options: {}, attribute_options: {}) ⇒ Object
11 12 13 |
# File 'lib/imgix/rails/view_helper.rb', line 11 def ix_image_tag(source=nil, path, tag_options: {}, url_params: {}, srcset_options: {}, attribute_options: {}) return Imgix::Rails::ImageTag.new(path, source: source, tag_options: , url_params: url_params, srcset_options: , attribute_options: ).render end |
#ix_picture_tag(source = nil, path, tag_options: {}, img_tag_options: {}, url_params: {}, breakpoints: {}, srcset_options: {}) ⇒ Object
15 16 17 |
# File 'lib/imgix/rails/view_helper.rb', line 15 def ix_picture_tag(source=nil, path, tag_options: {}, img_tag_options: {}, url_params: {}, breakpoints: {}, srcset_options: {}) return Imgix::Rails::PictureTag.new(path, source: source, tag_options: , img_tag_options: , url_params: url_params, breakpoints: breakpoints, srcset_options: ).render end |