Module: ImagesHelper

Defined in:
app/helpers/images_helper.rb

Instance Method Summary (collapse)

Instance Method Details

!! Rails already provides image_tag, i.e. it is not required here.



5
6
7
8
# File 'app/helpers/images_helper.rb', line 5

def image_link(image)
  return nil if image.nil?
  link_to(image_tag(image.image_file.url(:thumb)), image)
end

- (True) images_recent_objects_partial

Returns indicates a custom partial should be used, see list_helper.rb

Returns:

  • (True)

    indicates a custom partial should be used, see list_helper.rb



16
17
18
# File 'app/helpers/images_helper.rb', line 16

def images_recent_objects_partial
  true 
end

- (Object) images_search_form



10
11
12
# File 'app/helpers/images_helper.rb', line 10

def images_search_form
  render('/images/quick_search_form')
end