Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update README.rdoc

  • Loading branch information...
commit 2ae094d884678c8d5359e3bec2da7bf0053f498d 1 parent d701014
@hauleth authored
Showing with 8 additions and 8 deletions.
  1. +8 −8 README.rdoc
View
16 README.rdoc
@@ -1,6 +1,6 @@
-Author:: Łukasz Niemier
+Author:: Łukasz Niemier
Copyright:: Copyright (c) 2010 Łukasz Niemier
-Licence:: See COPYING
+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.
@@ -10,20 +10,20 @@ InfoBar is simple Twitter-like informaton bar plugin based on Prototype and Scri
== Usage
Add nessessary JavaScript headers:
- <%= javascript_include_tag :defaults, :infobar %>
+ <%= javascript_include_tag :defaults, :infobar %>
=== Warning
If you don't use:
- <%= stylesheet_link_tag :all %>
+ <%= stylesheet_link_tag :all %>
You shoud add:
- <%= stylesheet_link_tag 'infobar' %>
+ <%= stylesheet_link_tag 'infobar' %>
If all is done add in your head(recomended) or body section:
- <%= infobar %>
+ <%= 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 %>
+ <%= 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 ] %>
+ <%= infobar :flash => [ :notify, :success, :error ] %>
Simple, isn't it?
More examples will be shown in GitHub Wiki. Check also documentation at http://rdoc.info/github/Hauleth/InfoBar/master/frames.
Please sign in to comment.
Something went wrong with that request. Please try again.