Agile Web Development

Build it. Launch it. Love it.

greybox_on_rails

Greybox
=======

DESCRIPTION:
Rails wrapper for greybox, comes with assets from GreyBox v5.53 (to upgrade greybox, replace contents of assets/greybox with new assets from release, assuming I haven't updated the plugin). Hopefully that's not against some license somewhere. :D
You can find GreyBox here: http://orangoo.com/labs/GreyBox/

INSTALLATION:
script/plugin install git://github.com/ssoroka/greybox_on_rails.git

Examples:
<%= greybox_link_to_image(image_tag('rockies_thumb.jpg'), "/images/rocky_mountains.jpg",
:title => 'From my trip to the rockies!') %>

also can be used as a block:
<% greybox_link_to_image nil, "/images/rocky_mountains.jpg", :title => 'From my trip to the rockies!' do %>
<%= image_tag('rockies_thumb.jpg') %>
<% end %>

<%= greybox_link_to_page(nil, "http://www.google.ca", :title => 'This is google!') do
image_tag('google_image.jpg')
end %>

<%= greybox_link_to_page("View Google!", "http://www.google.ca", :title => 'This is google!') %>

wrap pages or images in greybox_links(group_name) to allow visitors to flip between them (Haven't tested mixing sites and images, my guess is it wouldn't work. stick to one or the other):

greybox_links "Nice pics" do
greybox_link_to_image "sunset", "sunset.jpg"
greybox_link_to_image "sunset 2", "sunset2.jpg"
end

DOCS:
run rdoc to generate documentation from source.

TESTS:
"rake" to run tests. They passed, I swear. :D

Steven Soroka
http://blog.stevensoroka.ca

Vitals

Home http://github.com/ssoroka/greybox_on_rails/tree
Repository git://github.com/ssoroka/greybox_on_rails.git
License Rails' (MIT)
Rating (5 votes)
Owner Steven Soroka
Created 22 October 2007

Comments

  • Avatar
    26 November 2007

    FYI There's a typo in the INSTALL line: script/plugin install svn://svn2.clearlinewebsystems.ca/public/plugins/greybox

  • Rudi
    19 September 2008

    Best box for rails, the better helper.

  • 15 October 2008

    Moved this project to github: http://github.com/ssoroka/greyboxonrails/tree

Add a comment