Module: Rubylight::LightHelpers
- Defined in:
- lib/rubylight/light_helpers.rb
Instance Method Summary collapse
Instance Method Details
#lightbox_tag(thumb, url_options = {}, title = nil, collection = nil, html_options = {}) ⇒ Object
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, = {} rel = "lightbox" if collection rel << "[#{collection}]" end .merge!({:rel => rel, :title => title}) link_to(image_tag(thumb), pic, ) end |