title: will_paginate (getting undefined method error for boards)
body: <p>Maybe this is a newbie issue but I just can't figure out was going on 
  Getting an error when I refresh local host</p>
  
  <p>undefined local variable or method `boards' for #&lt;#:0x3c8eff8>
  Extracted source (around line #14):</p>
  
  <p>Here is the code in my index.html.erb for boards</p>
  
  <h1>Listing boards</h1>
  
  <pre><code>&lt;table&gt;
    &lt;thead&gt;
      &lt;tr&gt;
        &lt;th&gt;Name&lt;/th&gt;
        &lt;th&gt;About&lt;/th&gt;
        &lt;th&gt;User&lt;/th&gt;
        &lt;th colspan="3"&gt;&lt;/th&gt;
      &lt;/tr&gt;
    &lt;/thead&gt;
  
    &lt;tbody&gt;
      &lt;%= will_paginate(boards) %&gt;
      &lt;% @boards.each do |board| %&gt;
        &lt;tr&gt;
          &lt;td&gt;&lt;%= board.name %&gt;&lt;/td&gt;
          &lt;td&gt;&lt;%= board.about %&gt;&lt;/td&gt;
          &lt;td&gt;&lt;%= board.user.full_name %&gt;&lt;/td&gt;
          &lt;td&gt;&lt;%= link_to 'Show', board %&gt;&lt;/td&gt;
          &lt;td&gt;&lt;%= link_to 'Edit', edit_board_path(board) %&gt;&lt;/td&gt;
          &lt;td&gt;&lt;%= link_to 'Destroy', board, method: :delete, data: { confirm: 'Are you sure?' } %&gt;&lt;/td&gt;
        &lt;/tr&gt;
      &lt;% end %&gt;
    &lt;/tbody&gt;
  &lt;/table&gt;
  
  &lt;br&gt;
  
  &lt;%= link_to 'New Board', new_board_path %&gt;
  </code></pre>
  
  <p>****Here is the code for my index method in board controller****</p>
  
  <pre><code>def index
      if user_signed_in?
        @boards = current_user.boards
      else 
        @boards = Board.paginate(page: params[:page], per_page: 1)
      end
  
    end
  </code></pre>
  
  <p>I have added the will_paginate to my gem file </p>
  
  <p>source '<a href="https://rubygems.org" rel="nofollow">https://rubygems.org</a>'</p>
  
  <p>gem 'will_paginate'</p>