From 30db92391112239bc7337e6ae5b2b4740390780e Mon Sep 17 00:00:00 2001 From: Kristian Mandrup Date: Wed, 21 Mar 2012 13:43:00 +0100 Subject: [PATCH] initial commit --- .gitignore | 10 +++++----- README.rdoc | 32 ++++++++++++++++++++++++++++++++ VERSION | 2 +- 3 files changed, 38 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index a9c888f..c1b9809 100644 --- a/.gitignore +++ b/.gitignore @@ -28,11 +28,11 @@ pkg # # For MacOS: # -#.DS_Store +.DS_Store # For TextMate -#*.tmproj -#tmtags +*.tmproj +tmtags # For emacs: #*~ @@ -40,10 +40,10 @@ pkg #.\#* # For vim: -#*.swp +*.swp # For redcar: -#.redcar +.redcar # For rubinius: #*.rbc diff --git a/README.rdoc b/README.rdoc index 99bc204..bfda3fc 100644 --- a/README.rdoc +++ b/README.rdoc @@ -2,6 +2,38 @@ The Chosen (see http://harvesthq.github.com/chosen/) javascript plugin for better form checkboxes, radios and input selects now packaged as a gem for Rails 3. All the Chosen assets are pre-packaged to be used with the Rails 3 Asset pipeline and follows those conventions. +== Use + +Simply insert requirements into your manifest application.js and application.css files + +application.css: + +/* + *= ... + *= require chosen.css +*/ + +The css should be set up to reference the sprite image made available in the /assets/ folder in the root of the app. + +application.js: + +Using coffeescript assets (divided into 3 parts) + +//= require jquery +//= require_tree . + +//= require select-parser +//= require abstract-chosen +//= require chosen.jquery + + +Using javascript assets + +//= require jquery +//= require_tree . +//= require chosen.jquery + + == Contributing to chosen-rails * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet. diff --git a/VERSION b/VERSION index bd52db8..6c6aa7c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.0.0 \ No newline at end of file +0.1.0 \ No newline at end of file