Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions README
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
ThickBoxObject v.1.0
====================
#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 %>
`<%= javascript_include_tag :defaults %>`

You must add also the stylesheet so add this on your page head:

<%= stylesheet_link_tag 'lightbox' %>
`<%= stylesheet_link_tag 'lightbox' %>`

The is very simple for add a LightBox in your page add this:

<%= lightbox_link_to "Link Name", "/path/of/your/image.png" %>
`<%= lightbox_link_to "Link Name", "/path/of/your/image.png" %>`
or
<%= lightbox_image_tag("/path/of/your/image-thumb.png", "/path/of/your/image.png", {:class=>"images"}, :title => "This is a test!") %>
`<%= lightbox_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 what do u whant becaue it's based on image_tag and link_to.

Expand Down
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# 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 add also the stylesheet so add this on your page head:

`<%= stylesheet_link_tag 'lightbox' %>`

The is very simple for add a LightBox in your page add this:

`<%= lightbox_link_to "Link Name", "/path/of/your/image.png" %>`

OR

`<%= lightbox_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 what do u whant becaue it's based on image_tag and link_to.

Vist my website: http://blog.lipsiasoft.com