Module: Rubylight::LightHelpers

Defined in:
lib/rubylight/light_helpers.rb

Instance Method Summary collapse

Instance Method Details



3
4
5
6
7
8
9
10
# File 'lib/rubylight/light_helpers.rb', line 3

def lightbox_tag thumb, pic, title=nil, collection=nil, html_options = {}
  rel = "lightbox"
  if collection
    rel << "[#{collection}]"
  end
  html_options.merge!({:rel => rel, :title => title})
  link_to(image_tag(thumb), pic, html_options)
end