title: Rails controller cannot find my template even though it exists
body: <pre><code>def index
    @welcome = current_user.is_Welcome?
    @title = 'Dashboard'
    if current_user.worker?
      project_in_progress = Project.where(:worker_id =&gt; current_user.id, :status =&gt; 'Currently     Working')
      @projects_in_progress = project_in_progress.order("id DESC").paginate(:page =&gt; params[:page], :per_page =&gt; 8)
      @bid_invites = current_user.bids.where(:status =&gt; 'Invited')
      @project_awarded = @projects_in_progress.where(["updated_at &gt; ?", current_user.last_action])
      @milestone_paid = Milestone.where(:user_id =&gt; current_user.id, :status =&gt; 'Paid').where(["updated_at &gt; ?", current_user.last_action])
      render :worker_index, :locals =&gt; { working_projects: @projects_in_progress, bid_invites: @bid_invites, project_awarded: @project_awarded,
                                         milestone_paid: @milestone_paid, welcome: @welcome }
    elsif current_user.buyer?
      project = current_user.projects.where(:status =&gt; ['Hiring Open', 'Currently Working'])
      @open_projects = project.order("id DESC").paginate(:page =&gt; params[:page], :per_page =&gt; 8)
      render :buyer_index, :locals =&gt; { open_projects: @open_projects, welcome: @welcome }
    end   
  end
  </code></pre>
  
  <p>And i do have these view in the right folder.</p>
  
  <p>this is the error i get </p>
  
  <p>Template is missing</p>
  
  <p>Missing template account/buyer_index.html with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :arb, :coffee]}. Searched in: * "</p>
  
  <p>I really hope this is an oversight on my part ....</p>