title: Private Method for Nested Resource
body: <p>From Previous:</p>
  
  <p><a href="https://stackoverflow.com/questions/22444402/rails-4-nested-resources-routes-almost-there/22444516?noredirect=1#comment34136080_22444516">Rails 4 Nested Resources/Routes... almost there...?</a></p>
  
  <p>My private method within my lines controller to load the manufacturer into the controller is throwing an error...</p>
  
  <p>I use before_filter :load_manufacturer</p>
  
  <p>and the function is:</p>
  
  <pre><code>def load_manufacturer
    @manufacturer = Manufacturer.find(params[:manufacturer_id])
  end
  </code></pre>
  
  <p>When I try to edit the line instance in the form, I get:</p>
  
  <pre><code>Couldn't find Manufacturer with id=manufacturer_id
  </code></pre>
  
  <p>But it is passing the manufcaturer params ok...</p>
  
  <pre><code>Parameters:
  
  {"manufacturer_id"=&gt;"manufacturer_id",
   "id"=&gt;"17"}
  </code></pre>