Project

noty-rails

0.02
No commit activity in last 3 years
No release in over 3 years
This gem provides Noty, a jQuery Notification Plugin, for your Rails application.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

 Project Readme

Rails asset-pipeline gem to provide Noty

Deprecation Note

There are multiple ways for managing this JS library already (or any library that is supported by bower):

This gem will be updated until a major release is done in the upstream.

Install

gem 'noty-rails'

Usage

Look at the official installation instructions

Where to put require statement

Since you can set some default config of Noty including layout
I think it is more sensible to put the require statements in the same file
As you have to require the layout and theme files you need

# app/assets/javascripts/shared/flashes/noty-config.js.coffee
#= require noty/jquery.noty
#= require noty/layouts/bottom
#= require noty/themes/default

$ = jQuery

$.noty.defaults.timeout = 8000
$.noty.defaults.layout = 'bottom'

Changelog

2.3.8

  • Update Noty to 2.3.8

2.3.7

  • Update Noty to 2.3.7

2.3.5

  • Update Noty to 2.3.5

2.3.4

  • Update Noty to 2.3.4

2.2.9

  • Update Noty to 2.2.9

2.2.2

  • Update Noty to 2.2.2

2.2.0

  • Update Noty to 2.2.0

2.1.4

  • Update Noty to 2.1.4

2.1.0.1

  • Add MIT Licence to gemspec

2.1.0

  • Update Noty to 2.1.0

2.0.3.1

  • Make it compatible with Rails 4 version (Now is an instance of Gem::Version)