title: Adding Chosen to a Rails App
body: <p>I have been looking around and cannot find a good example of implementing Chosen, <a href="http://harvesthq.github.com/chosen/" rel="nofollow">http://harvesthq.github.com/chosen/</a>, into a Rails app.  I am trying to convert my existing multi-select into a chosen styled multi-select box.</p>
  
  <p>I tried inserting the files manually, copying chosen.jquery.js into my assets/javascripts folder along with adding chosen.css.  Also added //= require chosen-jquery to application.js along with the following code </p>
  
  <pre><code>jQuery(function($){
  $('.chzn-select').chosen();
  })
  </code></pre>
  
  <p>Also have  *= require chosen in application.css.scss</p>
  
  <p>I added :class => "chzn-select" in a collection_select in a form_tag.</p>
  
  <p>Also tried using the 'chosen-rails' gem (here is an example <a href="http://choppingbloc.tumblr.com/post/24894460392/multiple-select-boxes-with-chosen-jquery" rel="nofollow">http://choppingbloc.tumblr.com/post/24894460392/multiple-select-boxes-with-chosen-jquery</a>) but had no luck. </p>
  
  <p>Anything I might be overlooking?  The collection_select is working, but it is not styled like Chosen.  I am a beginner so if there is anything obvious I may have overlooked, please tell - everything above is what I have done.</p>