title: chosen-rails error chosen is not a function
body: <p>I am using chosen-rails for integration of chosen.js with rails asset pipeline</p>
  
  <p>I have included in my Gemfile</p>
  
  <pre><code>gem 'chosen-rails'
  </code></pre>
  
  <p>then</p>
  
  <pre><code>bundle install
  </code></pre>
  
  <p>in my application.js I have</p>
  
  <pre><code>//= require jquery
  //= require jquery_ujs
  //= require chosen-jquery
  //= require_self
  </code></pre>
  
  <p>in my application.css I have</p>
  
  <pre><code> *= require chosen
  </code></pre>
  
  <p>The page loads the js as required</p>
  
  <pre><code>/assets/jquery.js?body=1
  /assets/jquery_ujs.js?body=1
  /assets/lib/select-parser.js?body=1
  /assets/chosen.jquery.js?body=1
  </code></pre>
  
  <p>But I I try to use the function chosen() it gives the error chosen is not a function</p>
  
  <pre><code>$('#whatever').chosen();
  </code></pre>
  
  <p>I have tried the above in the footer. inside Jquery ready.. inside firebug console.. nothing seems to work. What can possibly be the issue ???</p>