Plugin to render Rails application feedback in a dialog-style lightbox
JavaScript Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
images
javascripts
lib
stylesheets
tasks
.DS_Store
README
Rakefile
init.rb
install.rb
uninstall.rb

README

Flashbox
========

A simple plugin to render application feedback to the user in a dialog-style lightbox.
Uses JQuery and Chris Wanstrath's Facebox (both included).  Based heavily upon Jeremy Voorhis' feedback plugin.

JQuery: http://jquery.com
Facebox: http://famspam.com/facebox/


Usage
=====

Controller:
add_info('Interesting information')
add_warning('Watch out!')
add_error('Everything broken!')

RJS:
page.add_info('AJAX flashbox!')
page.add_warning('AJAX is hard to debug')
page.add_error('Oops, you broke it!')


Application layout:
<%= javascript_include_tag 'jquery' %>
<%= stylesheet_link_tag 'flashbox' %>
<%= javascript_include_tag 'flashbox' %>
<%= flashbox_init %>