title: Why is this current_page? call giving me a no route error for a route that exists?
body: <p>In my <code>application.html.erb</code>, I have this:</p>
  
  <pre><code>      &lt;% if current_page?(controller: "questions", action: "index") || current_page?(controller: "jobs", action: "index") %&gt;
          &lt;%= "This is the IF for #{controller_name} and #{controller.action_name}" %&gt;
              &lt;%= yield %&gt;
        &lt;% elsif current_page?(controller: "jobs", action: "show") %&gt;
          &lt;%= "This is the ELSIF for #{controller_name} and #{controller.action_name}" %&gt;
            &lt;div class="wrapper wrapper-content article"&gt;
              &lt;%= yield %&gt;
            &lt;/div&gt;
        &lt;% else %&gt;
        &lt;% end %&gt;
  </code></pre>
  
  <p>Pay special attention the <code>elsif current_page?...</code> line. That's where the error is being generated.</p>
  
  <p>I visit <code>Question#Index</code>, and I get this error in my server log (error is at the bottom):</p>
  
  <pre><code>Started GET "/" for 127.0.0.1 at 2016-06-22 01:25:57 -0500
    ActiveRecord::SchemaMigration Load (0.9ms)  SELECT "schema_migrations".* FROM "schema_migrations"
  Processing by QuestionsController#index as HTML
    Rendering questions/index.html.erb within layouts/application
    Rendered shared/_main_page_heading.html.erb (0.4ms)
    Question Load (4.0ms)  SELECT "questions".* FROM "questions" ORDER BY "questions"."created_at" DESC
    #
    # truncated for brevity
    #
    Rendered questions/index.html.erb within layouts/application (680.3ms)
    Rendered shared/_navbar.html.erb (2.4ms)
  Completed 500 Internal Server Error in 1474ms (ActiveRecord: 63.4ms)
  
  
  DEPRECATION WARNING: #original_exception is deprecated. Use #cause instead. (called from initialize at /.rvm/gems/ruby-2.3.0@myapp/gems/better_errors-2.1.1/lib/better_errors/raised_exception.rb:7)
  DEPRECATION WARNING: #original_exception is deprecated. Use #cause instead. (called from initialize at /.rvm/gems/ruby-2.3.0@myapp/gems/better_errors-2.1.1/lib/better_errors/raised_exception.rb:8)
  
  ActionController::UrlGenerationError - No route matches {:action=&gt;"show", :controller=&gt;"jobs"}:
  </code></pre>
  
  <p>However, in my <code>routes.rb</code> I have this:</p>
  
  <pre><code>resources :jobs
  </code></pre>
  
  <p>And my <code>rails/info/routes</code> (aka web version of <code>rake routes</code>) has this:</p>
  
  <pre><code>jobs_path   GET /jobs(.:format) jobs#index    
             POST /jobs(.:format) jobs#create
  new_job_path GET /jobs/new(.:format) jobs#new 
  edit_job_path GET /jobs/:id/edit(.:format) jobs#edit
  job_path    GET /jobs/:id(.:format) jobs#show
            PATCH /jobs/:id(.:format) jobs#update
            PUT   /jobs/:id(.:format) jobs#update
           DELETE /jobs/:id(.:format) jobs#destroy
  </code></pre>
  
  <p>I have this in my <code>JobsController.rb</code></p>
  
  <pre><code>  def show
    end
  </code></pre>
  
  <p>I have restarted my server a few times, and still no dice.</p>
  
  <p>Thoughts?</p>