
Security News
CISA’s 2025 SBOM Guidance Adds Hashes, Licenses, Tool Metadata, and Context
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Flashtastic is a Rails (3.1 and above) gem that replaces rails flash messages with Messenger (Version 1.3.6) javascript library for notifications.
jQuery
Plays well with, but doesn't require, Bootstrap
Add this line to your application's Gemfile:
gem 'flashtastic'
And then execute:
$ bundle
Or install it yourself as:
$ gem install flashtastic
After gem installation do:
$ rails g flashtastic:install
Thats it!
After installing the gem, if you don't want to run rails g flashtastic:install
, do the following:
Copy the following coffeescript file in your assets:
flashtastic_initializer.js.coffee
Add the following directive to your application.coffee / application.js.
//= require messenger
//= require messenger-theme-flat
//= require flashtastic_initializer // This will add integration with rails flash messages.
Add the following directive to your application.scss / application.css. There are Five themes/styles provided (flat, future, air, block and ice), change required stylesheet as needed.
*= require messenger
*= require messenger-spinner
*= require messenger-theme-flat
Include Flashtastic module in Application controller
include Flashtastic
Thats it!
If you have included flashtastic_initializer.js.coffee in your assets, your regular rails flash messages will show up as messenger messages. Even for ajax requests.
Modify flashtastic_initializer.js.coffee as needed.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)Amit Gaur
FAQs
Unknown package
We found that flashtastic demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.