title: cocoon gem install / usage?
body: <p>i am trying to use cocoon for nested ajax form coupled with formtastic</p>
  
  <p>my rails version</p>
  
  <pre><code> Rails 3.2.3
  </code></pre>
  
  <p>i have put gem "cocoon" im my gemfile and did a bundle install</p>
  
  <p>then in my elements/_form.html.erb:</p>
  
  <pre><code> &lt;%= semantic_form_for @element do |f| %&gt;
  
      &lt;%= f.inputs do %&gt;
  
      &lt;%= f.input :projects, :label_method =&gt; :projectname%&gt;
  
      &lt;%= f.semantic_fields_for :experiments do |exp| %&gt;
             &lt;% render 'experiment_fields', :f =&gt; exp %&gt;    
             &lt;%= link_to_add_association "Add experiment", f, :experiments%&gt;
      &lt;%end%&gt;   
  
      &lt;% end %&gt;
      &lt;%= f.actions :submit, :cancel %&gt;    
  
    &lt;% end %&gt;
  </code></pre>
  
  <p>with elements/_experiment_fields.html.erb :</p>
  
  <pre><code> &lt;div class='nested-fields'&gt; 
     &lt;%= f.input :exptype %&gt;
     &lt;%= link_to_remove_association "remove experiment", f %&gt;
   &lt;/div&gt;
  </code></pre>
  
  <p>this generate no error but do not display the nested link or form</p>
  
  <p>i then added to assets/application.js:</p>
  
  <pre><code>   //= require cocoon
  </code></pre>
  
  <p>and to layout/application.html.erb</p>
  
  <pre><code>          &lt;%= javascript_include_tag :cocoon %&gt;
  </code></pre>
  
  <p>this generate the error :</p>
  
  <pre><code>        couldn't find file 'cocoon'
  </code></pre>
  
  <p>did i miss something in cocoon installation ?
  could anyone help?</p>