title: Call a model method in a Controller
body: <p>I'm have some difficulties here, I am unable to successfully call a method which belongs to a <code>ProjectPage</code> <em>model</em> in the <code>ProjectPage</code> <em>controller</em>.</p>
  
  <p>I have in my <code>ProjectPage</code> controller:</p>
  
  <pre><code>def index
    @searches = Project.published.financed     
    @project_pages = form_search(params)
  end
  </code></pre>
  
  <p>And in my <code>ProjectPage</code> <em>model</em>:</p>
  
  <pre><code>def form_search(searches)
    searches = searches.where('amount &gt; ?', params[:price_min]) if check_params(params[:price_min])
    @project_pages = ProjectPage.where(:project_id =&gt; searches.pluck(:'projects.id'))
  end
  </code></pre>
  
  <p>However, I am unable to successfully call the <code>form_search</code> <em>method</em>.</p>