title: ActiveRecord::RecordNotFound in BookController#list
body: <p>I am new to ruby as well as rails I am getting the following error when i open the localhost link /book/list </p>
  
  <pre><code>ActiveRecord::RecordNotFound in BooksController#list
              Couldn't find Book with 'id'=all
  class BookController &lt; ApplicationController
  def list
      @books = Book.find(:all) &lt;------- problem is here
    end
    def show
      @book = Book.find(params[:id])
  </code></pre>
  
  <p>My books_controller.rb file.</p>
  
  <pre><code>class BookController &lt; ApplicationController
  def list
      @books = Book.find(:all)
    end
    def show
      @book = Book.find(params[:id])
    end
    def new
      @book = Book.new
      @subjects = Subject.find(:all)
    end
    #  private 
    def book_params
      params.require(:book).permit(:title,:price,:subject,:description)
    end
    def create
      @book = Book.new(book_params)
      if @book.save
        redirect_to :action =&gt; 'list'
      else
        @subjects = Subject.find(:all)
        render :action =&gt; 'new'
      end
    end
    def edit
      @book = Book.find(params[:id])
      @subjects = Subject.find(:all)
    end
  
    def book1_params
      params.require(:book).permit(:id)
    end
  
    def update
  #below is the line I am getting the error....
  @book = Book.find(params[:id])
  
  if @book.update_attributes(book_params)
      redirect_to @book
  else
      @subjects = Subject.all
  render 'edit'
   end
  end
  
  end
  </code></pre>
  
  <p>The @books = Book.find(:all) line in the list method tells Rails to search the books table and store each row it finds in the @books instance object.I am getting error in the list,new and all the nearly all the options.It says that couldnt find book with 'id'=all.</p>
  
  <p>my list.html.erb file.</p>
  
  <pre><code>&lt;% if @books.blank? %&gt;
  &lt;p&gt;There are not any books currently in the system.&lt;/p&gt;
  &lt;% else %&gt;
  &lt;p&gt;These are the current books in our system&lt;/p&gt;
  &lt;ul id="books"&gt;
  &lt;% @books.each do |c| %&gt;
  &lt;li&gt;&lt;%= link_to c.title, {:action =&gt; 'show', :id =&gt; c.id} -%&gt;&lt;/li&gt;
  &lt;% end %&gt;
  &lt;/ul&gt;
  &lt;% end %&gt;
  &lt;p&gt;&lt;%= link_to "Add new Book", {:action =&gt; 'new' }%&gt;&lt;/p&gt;
  </code></pre>
  
  <p>My routes.rb file</p>
  
  <pre><code>Rails.application.routes.draw do
  get 'book/new'
  post 'book/create'
  post 'book/update'
  get 'book/list'
  get 'book/show'
  get 'book/edit'
  get 'book/delete'
  get 'book/update'
  get 'book/show_subjects'
  </code></pre>
  
  <p>end</p>
  
  <p>I have recently started working with it and i m at the initial stage any help is appreciated.</p>