0.0
No commit activity in last 3 years
No release in over 3 years
Flash messages backed by jQuery Growl
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.13
~> 10.0

Runtime

 Project Readme

Gem growl-rails

The gem growl-rails leverages the popular jQuery library jquery.growl to make flash messages come alive.

Installation

Add this line to your application's Gemfile:

gem 'growl-rails'

And then execute:

$ bundle

Or install it yourself as:

$ gem install growl-rails

Usage

Require the growl assets in your javascript/css files.

JavaScript

//= require growl

CSS

/*
*= require growl
*/

SASS

@import 'growl'

Set a flash message in rails.

def create
  @user = User.new(user_params)
  if @user.save
    flash[:success] = "User created successfully"
    redirect_to user_path(@user)
  else
    flash[:error] = "Please check the errors below"
    render :new
  end
end

Render the flash messages in your layout

HAML

= flash_notification_tag

ERB

<%= flash_notification_tag %>

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/JoshuaTyree/growl-rails.

License

The gem is available as open source under the terms of the MIT License.