🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

netsign-ios-checkboxes

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

netsign-ios-checkboxes

0.1.2
Version published
Maintainers
1
Created

iOS Style Checkboxes for Rails 3.1

This gem provides an easy way of using iOS style checkboxes.

Install

Please be sure to have Rails Assets Pipeline enabled.

Add the following to your Gemfile, preferably inside the assets group:

gem 'ios-checkboxes'
gem 'jquery' # This is required by ios-checkboxes

Then as usually:

$ bundle install

Usage

After installation, all you need to do is to require ios-checkboxes inside JavaScript/CoffeeScript and CSS files.

Usually you would add this to your app/assets/javascripts/application.js file:

//= require ios-checkboxes

This will also automatically require jquery.

And also update your app/assets/javascripts/applications.css to inlude ios-checkboxes

/*
 *= require ios-checkboxes
 *= require_self
*/

That's it. Now you can write stuff like $(".on-off").iphoneStyle().

Development

  • Source hosted at GitHub. See rails directory.
  • Report issues and feature requests to GitHub Issues

To update the gem with the latest files do:

cd rails
rake update
# Now go and update the version manually in lib/ios-checkboxes/version.rb
git add .
git commit -m 'update rails gem'
rake release

FAQs

Package last updated on 25 Jan 2012

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