public
Description: rails plugin for growl like notifications for rails apps based on jgrowl
Homepage:
Clone URL: git://github.com/vanntastic/growlr.git
growlr /
name age message
file .gitignore Sun Oct 26 14:20:02 -0700 2008 initial commit [vanntastic]
file README.markdown Fri Oct 30 11:52:18 -0700 2009 minor update to readme [vanntastic]
file Rakefile Sun Oct 26 14:20:02 -0700 2008 initial commit [vanntastic]
directory config/ Sun Oct 26 21:20:47 -0700 2008 added growlr yml config file [vanntastic]
directory css/ Mon Oct 27 08:14:52 -0700 2008 added example files and js and css asset dirs a... [vanntastic]
directory examples/ Mon Oct 27 09:57:14 -0700 2008 added the rake installation tasks, updated the ... [vanntastic]
file init.rb Sun Oct 26 21:18:58 -0700 2008 - added config directory with the beginnings of... [vanntastic]
file install.rb Sun Oct 26 14:20:02 -0700 2008 initial commit [vanntastic]
directory js/ Mon Oct 27 08:14:52 -0700 2008 added example files and js and css asset dirs a... [vanntastic]
directory lib/ Tue Jul 14 00:29:39 -0700 2009 make sure to escape single quotes in messages [vanntastic]
directory tasks/ Mon Oct 27 09:57:14 -0700 2008 added the rake installation tasks, updated the ... [vanntastic]
directory test/ Sun Oct 26 14:20:02 -0700 2008 initial commit [vanntastic]
file uninstall.rb Sun Oct 26 14:20:02 -0700 2008 initial commit [vanntastic]
README.markdown

Growlr

Give your rails apps growl based notifications. Basically a rails plugin wrapper for Stan's excellent jGrowl library. This is a nice alternative to static flash messages, plus it integrates with all flash messages automatically, no need to output flash messages in your view!

Requirements

  • Jquery 1.2.6
  • Cookies should be enabled --it should be by default

Installation

  1. rake growlr:install:all
  2. include the following snippet in your layout or view file, preferably in the head section of your layout file.

    <%= include_growlr %>
    

Usage

Growlr will automatically detect flash messages and display them accordingly. You can explicitly call Growlr by writing the following in your action or controller:

 growl "hello peoples"

You can also pass the same options as the jgrowl plugin.

Todo's

  • work on the yml processing for the config files - should have support for multiple configs in one yaml file
  • write the functional specs

Copyright Stuff

  • jGrowl : http://stanlemon.net/projects/jgrowl.html