title: How to apply a scope to an association when using fields_for?
body: <p>I have a Project having many Tasks, and each Tasks belongs to a Person.</p>
  
  <p>In my Project edit form, I permit to edit existing tasks and add new ones with the Nested Object Form facility (<a href="http://ryandaigle.com/articles/2009/2/1/what-s-new-in-edge-rails-nested-attributes" rel="noreferrer">http://ryandaigle.com/articles/2009/2/1/what-s-new-in-edge-rails-nested-attributes</a>):</p>
  
  <pre><code>&lt;% project_form.fields_for :tasks do |task_form| %&gt;
  </code></pre>
  
  <p>I want to eager load the associated Task Person objects when fields_for requests the tasks from the database, but I could not find a solution. Is it possible? In the Project model I could define my has_many :tasks with the :include option, but I would rather avoid this as I don't need to eager load Person objects when dealing with a project tasks in general.</p>
  
  <p>For now I've created a second has_many association :tasks_including_person with the corresponding accepts_nested_attributes_for and use it in my fields_for. It works but I would prefer not have to create a specific association like this.</p>