New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

toastr_rails

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

toastr_rails

  • 2.1.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

ToastrRails

This is an opninionated toaster asset gem. It sets some defaults, adds support for flash messages and assumes you have a navbar.

Installation

Add this line to your application's Gemfile:

gem 'toastr_rails'

And then execute:

$ bundle

Usage

Add to your application.js and application.css:

//= require toastr_rails

You can put this in your layout/application.html file if you want to chach flash messages in a toast:

= render 'toastr_rails/flash'

Defaults:

// javascript
toastr.options = {
  "closeButton": true,
  "debug": false,
  "progressBar": true,
  "positionClass": "toast-top-right",
  "showDuration": "300",
  "hideDuration": "1000",
  "timeOut": "5000",
  "extendedTimeOut": "1000",
  "showEasing": "swing",
  "hideEasing": "linear",
  "showMethod": "fadeIn",
  "hideMethod": "fadeOut"
};

// css
#toast-container{
  top: 70px;
}

For all other options you can visit http://codeseven.github.io/toastr/

Contributing

  1. Fork it ( https://github.com/[my-github-username]/toastr_rails/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

FAQs

Package last updated on 02 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc