Module: Imgix::Rails::ViewHelper

Includes:
UrlHelper
Defined in:
lib/imgix/rails/view_helper.rb

Instance Method Summary collapse

Methods included from UrlHelper

#ix_image_url

Instance Method Details

#ix_image_tag(source = nil, path, tag_options: {}, url_params: {}, widths: []) ⇒ Object



11
12
13
# File 'lib/imgix/rails/view_helper.rb', line 11

def ix_image_tag(source=nil, path, tag_options: {}, url_params: {}, widths: [])
  return Imgix::Rails::ImageTag.new(path, source: source, tag_options: tag_options, url_params: url_params, widths: widths).render
end

#ix_picture_tag(source = nil, path, tag_options: {}, url_params: {}, breakpoints: {}, widths: []) ⇒ Object



15
16
17
# File 'lib/imgix/rails/view_helper.rb', line 15

def ix_picture_tag(source=nil, path, tag_options: {}, url_params: {}, breakpoints: {}, widths: [])
  return Imgix::Rails::PictureTag.new(path, source: source, tag_options: tag_options, url_params: url_params, breakpoints: breakpoints, widths: widths).render
end