0

When I attempt to include <%= paginate @coins %> in the view like this,

<div id="coin-index">
  <h1>All Coins</h1>
  <ul class="coins">
    <% @coins = @coins.sort_by &:currency_name %>
    <%= paginate @coins %>
    <% @coins.each do |coin| %>
      <ul><%= link_to coin.currency_name, :action => 'show', :id => coin %></ul>
    <% end %>
  </ul>
</div>

I get an error saying "undefined method paginate". The gem is installed properly.

Am I missing something here?

sawa
  • 165,429
  • 45
  • 277
  • 381
mattC
  • 363
  • 2
  • 17

0 Answers0