Skip to content
This repository
Browse code

Update README.rdoc

  • Loading branch information...
commit 2ae094d884678c8d5359e3bec2da7bf0053f498d 1 parent d701014
Łukasz Niemier authored

Showing 1 changed file with 8 additions and 8 deletions. Show diff stats Hide diff stats

  1. +8 8 README.rdoc
16 README.rdoc
Source Rendered
... ... @@ -1,6 +1,6 @@
1   -Author:: Łukasz Niemier
  1 +Author:: Łukasz Niemier
2 2 Copyright:: Copyright (c) 2010 Łukasz Niemier
3   -Licence:: See COPYING
  3 +Licence:: See COPYING
4 4
5 5 = InfoBar
6 6 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
10 10
11 11 == Usage
12 12 Add nessessary JavaScript headers:
13   - <%= javascript_include_tag :defaults, :infobar %>
  13 + <%= javascript_include_tag :defaults, :infobar %>
14 14 === Warning
15 15 If you don't use:
16   - <%= stylesheet_link_tag :all %>
  16 + <%= stylesheet_link_tag :all %>
17 17 You shoud add:
18   - <%= stylesheet_link_tag 'infobar' %>
  18 + <%= stylesheet_link_tag 'infobar' %>
19 19
20 20 If all is done add in your head(recomended) or body section:
21   - <%= infobar %>
  21 + <%= infobar %>
22 22 After that all flash[:notice] messages will be shown as a pretty slideing bar.
23 23 But let's give it some more options and possibilities:
24   - <%= infobar :flash => :success %>
  24 + <%= infobar :flash => :success %>
25 25 Now it will show only :success flashes, but what if we want to see i. e. :notify, :success and :error messages? Let's try:
26   - <%= infobar :flash => [ :notify, :success, :error ] %>
  26 + <%= infobar :flash => [ :notify, :success, :error ] %>
27 27 Simple, isn't it?
28 28 More examples will be shown in GitHub Wiki. Check also documentation at http://rdoc.info/github/Hauleth/InfoBar/master/frames.
29 29

0 comments on commit 2ae094d

Please sign in to comment.
Something went wrong with that request. Please try again.