Skip to content
forked from DAddYE/lightbox

ThickBox Helper is a small helper that automatizes the process for including ThickBoxes for Ruby on Rails sites.

License

Notifications You must be signed in to change notification settings

trevmex/thickbox

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ThickBoxObject v.1.0
====================
This will add a helper for thickboxes in Rails. (It is a fork of Lipsiasoft/lightbox) It is a work in progress, though. So please be patience.

<%= javascript_include_tag :defaults %>

You must also add this stylesheet to your view (in the header):

<%= stylesheet_link_tag 'thickbox' %>

It is very simple to add a ThickBox in your page:

<%= thickbox_link_to "Link Name", "/path/of/your/image.png" %> 
or
<%= thickbox_image_tag("/path/of/your/image-thumb.png", "/path/of/your/image.png", {:class=>"images"}, :title => "This is a test!") %>

You can add, title, controller, action, etc. because it is based on image_tag and link_to.

About

ThickBox Helper is a small helper that automatizes the process for including ThickBoxes for Ruby on Rails sites.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.6%
  • Ruby 1.4%