Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bootbox-rails

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bootbox-rails

  • 0.5.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

bootbox-rails Build Status

Wrappers for JavaScript alert(), confirm() and other flexible dialogs using Twitter's bootstrap framework for Rails 3.1+

Check out how to use bootbox.js at http://bootboxjs.com/

Installation

First, put this line in your Gemfile (for Bootstrap 3):

gem 'bootbox-rails', '~>0.4'

For Bootstrap 2 use following version:

gem 'bootbox-rails', '~>0.1.0'

Don't forget to add jquery-rails gem into your Gemfile. Also you may use very handy bootstrap-sass gem to add full stack of Twitter Bootstrap into your app.

Then run bundle install to update your application's bundle.

Now you need to edit your app/assets/javascripts/application.js file and add the following line:

//= require bootbox

And you're done!

Usage

Now you able to use modals like this:

<a href="#" id="link">Click me!</a>

<script>
$(function() {
  $('#link').click(function() {
    bootbox.alert("Hello world!");  
  })
})
</script>

Please see http://paynedigital.com/bootbox for full usage instructions, or head over to http://bootboxjs.com for a demo page

How to run tests

$ cd spec/dummy && rake db:create
$ rspec spec/

License

The MIT License

FAQs

Package last updated on 12 May 2015

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