Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kristianmandrup committed Mar 21, 2012
1 parent 6410cf0 commit 30db923
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .gitignore
Expand Up @@ -28,22 +28,22 @@ pkg
#
# For MacOS:
#
#.DS_Store
.DS_Store

# For TextMate
#*.tmproj
#tmtags
*.tmproj
tmtags

# For emacs:
#*~
#\#*
#.\#*

# For vim:
#*.swp
*.swp

# For redcar:
#.redcar
.redcar

# For rubinius:
#*.rbc
32 changes: 32 additions & 0 deletions README.rdoc
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
0.0.0
0.1.0

0 comments on commit 30db923

Please sign in to comment.