Skip to content
InfoBar is simple Twitter-like informaton bar Rails plugin
Ruby JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
public
test
.gitignore
COPYING
README.rdoc
Rakefile
init.rb
install.rb
uninstall.rb

README.rdoc

Author

Łukasz Niemier

Copyright

Copyright © 2010 Łukasz Niemier

Licence

See COPYING

InfoBar

InfoBar is simple Twitter-like informaton bar plugin based on Prototype and Scripto.aculo.us. Created for Rails 3, and propably no backward compatible.

Installation

rails plugin install git://github.com/Hauleth/InfoBar.git

Usage

Add nessessary JavaScript headers:

<%= javascript_include_tag :defaults, :infobar %>

Warning

If you don't use:

<%= stylesheet_link_tag :all %>

You shoud add:

<%= stylesheet_link_tag 'infobar' %>

If all is done add in your head(recomended) or body section:

<%= infobar %>

After that all flash[:notice] messages will be shown as a pretty slideing bar. But let's give it some more options and possibilities:

<%= infobar :flash => :success %>

Now it will show only :success flashes, but what if we want to see i. e. :notify, :success and :error messages? Let's try:

<%= infobar :flash => [ :notify, :success, :error ] %>

Simple, isn't it? More examples will be shown in GitHub Wiki. Check also documentation at rdoc.info/github/Hauleth/InfoBar/master/frames.

Copyright

Copyright © 2010 Łukasz Niemier, released under the MIT license

Something went wrong with that request. Please try again.