class ProjectsController < ApplicationController
  def show
    @project = Project.find params[:id]
  end
end

class ProjectsController < ApplicationController
  def show
    @project = Project.find params[:id]
  end

  def index
    @projects = Project.all
  end
end

Add index action on projects controller
Add index action on projects controller
