title: Undefined method `price_workshops_attributes' - Ruby on rails
body: <p>I'm using angularjs in my form and I need to include data in my json for my <code>ng-init</code>, but it marks me an error, how can I resolve this error?
  I need it because I'm using nested attributes</p>
  
  <pre><code>&lt;%= form_for [:client, @workshop_manager], class: 'form-horizontal',
    :multipart =&gt; true, html: {
      :onsubmit =&gt; 'return false;',
      "ng-init" =&gt; "workshop_manager="+@workshop_manager.to_json({
        :include =&gt; [:price_workshops_attributes]
      })
    } do |f| %&gt;
  </code></pre>
  
  <p>My error:</p>
  
  <blockquote>
    <p><code>NoMethodError</code> - undefined method <code>price_workshops_attributes</code> for <code>#&lt;WorkshopManager:0x000000000e8b0ac0&gt;</code></p>
  </blockquote>