title: Couldn't find Schedule with 'id'=
body: <p>I am getting error <code>ActiveRecord::RecordNotFound in ScheduleController#show Couldn't find Schedule with 'id'=swarm</code></p>
  
  <p>The error triggers when I click one of my routes and I figure this is due to Active Record looking for <code>id=swarm</code> and not finding it because it doesn't exist. </p>
  
  <p>My methods / routes <code>swarm</code> (etc...) find the by <code>id</code> and load without issue until I implement the <code>show</code> method to show individual items.</p>
  
  <p>My goal was to handle all of this with just one controller, but I am unsure if this is an issue with my routing or my controller.</p>
  
  <p>schedule_controller.rb</p>
  
  <pre><code>class ScheduleController &lt; ApplicationController
  
    def index
      @schedules = Schedule.all
    end
  
    def show
      @schedules = Schedule.find(params[:id])
    end
  
    def swarm
      @swarm = Schedule.find([3, 4, 7, 8, 13, 14, 19, 20, 27, 28, 29, 30, 35, 36, 39, 40])
    end
  
    def reddevils
      @reddevils = Schedule.find([1, 2, 7, 8, 11, 12, 15, 16, 23, 24, 21, 32, 35, 36, 37, 38])
    end
  
    def thunder
      @thunder = Schedule.find([5, 6, 9, 10, 15, 16, 19, 20, 21, 22, 27, 28, 31, 32, 33, 34])
    end
  
    def stampede
      @stampede = Schedule.find([1, 2, 9, 10, 13, 14, 17, 18, 21, 22, 25, 26, 29, 30, 37, 38])
    end
  
    def admirals
      @admirals = Schedule.find([3, 4, 5, 6, 11, 12, 17, 18, 23, 24, 25, 26, 33, 34, 39, 40])
    end
  
  end
  </code></pre>
  
  <p>routes.rb</p>
  
  <pre><code>Rails.application.routes.draw do
    # get 'schedule/index'
  
    resources :schedule
  
    root 'schedule#index'
  
  # Schedule routes
    get 'schedule/swarm'
    get 'schedule/reddevils'
    get 'schedule/thunder'
    get 'schedule/stampede'
    get 'schedule/admirals'
  
  end
  </code></pre>
  
  <p>EDIT: Posting views as requested:</p>
  
  <p>views/schedule/index.html.erb</p>
  
  <pre><code>&lt;div class="container-fluid"&gt;
    &lt;div class="well team-list"&gt;
      &lt;ul class="nav nav-pills nav-justified"&gt;
        &lt;li&gt;&lt;%= link_to 'All Games', root_path %&gt;&lt;/li&gt;
        &lt;li&gt;&lt;%= link_to 'Botany Swarm', schedule_swarm_path %&gt;&lt;/li&gt;
        &lt;li&gt;&lt;%= link_to 'Canterbury Red Devils', schedule_reddevils_path %&gt;&lt;/li&gt;
        &lt;li&gt;&lt;%= link_to 'Dunedin Thunder', schedule_thunder_path %&gt;&lt;/li&gt;
        &lt;li&gt;&lt;%= link_to 'Skycity Stampede', schedule_stampede_path %&gt;&lt;/li&gt;
        &lt;li&gt;&lt;%= link_to 'West Auckland Admirals', schedule_admirals_path %&gt;&lt;/li&gt;
      &lt;/ul&gt;
      &lt;% @schedules.each do |schedule| %&gt;
        &lt;div class="col-xs-6"&gt;
          &lt;div class="panel panel-default"&gt;
            &lt;div class="panel-heading"&gt;
              &lt;div class="panel-title"&gt;
                &lt;h4 class="text-center"&gt;&lt;%= schedule.leagueGame %&gt; - &lt;%= schedule.home %&gt; v &lt;%= schedule.away %&gt;&lt;/h4&gt;
              &lt;/div&gt;
              &lt;div class="panel-body"&gt;
                &lt;span class="pull-left"&gt;&lt;img src="&lt;%= schedule.homeLogo %&gt;" alt="&lt;%= schedule.homeLogo %&gt;"&gt;&lt;/span&gt;
                &lt;span class="text-center"&gt;Details of upcoming game &lt;%= link_to 'Game Deets', schedule_path(schedule) %&gt;&lt;/span&gt;
                &lt;span&gt;&lt;img class="pull-right" src="&lt;%= schedule.awayLogo %&gt;" alt="&lt;%= schedule.awayLogo %&gt;"&gt;&lt;/span&gt;
              &lt;/div&gt;
              &lt;div class="panel-footer"&gt;
                &lt;span class="pull-left"&gt;&lt;%= schedule.venue %&gt;&lt;/span&gt;
                &lt;span class="text-center"&gt;Tickets&lt;/span&gt;
                &lt;span class="pull-right"&gt;&lt;%= schedule.date %&gt;&lt;/span&gt;
              &lt;/div&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;% end %&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Any help is much appreciated!</p>