title: ActiveRecord::RecordNotFound: Couldn't find Player with 'id'=all
body: <p>Player_controller</p>
  
  <p>class PlayersController &lt; ApplicationController</p>
  
  <pre><code>def index
      @players = Player.all
  end
  
  def show
      @player = Player.find(params[:id])
  end 
  
  def new
  end
  
  def create
      @player = Player.new(player_params)
      @player.save
      redirect_to @player
  end
  
  private
      def player_params
      params.require(:player).permit(:name, :description)
  end
  </code></pre>
  
  <p>end</p>
  
  <p>I am trying to display the data stored in the player model, here is my show.html</p>
  
  <p>show.html</p>
  
  <p>
      <strong>Name:</strong>
      
  </p>
  
  <p>
      <strong>Description:</strong>
      
  </p>
  
  <p>The actual player name and description is not displayed on the show action. While trying to debug in the console with <code>@players = Player.find(:all)</code>
  , here is the error message </p>
  
  <pre><code>SELECT  "players".* FROM "players" WHERE "players"."id" = NULL LIMIT 1
  ActiveRecord::RecordNotFound: Couldn't find Player with 'id'=all
  </code></pre>