<% if @page_count > 1 %>
<% if @current_page != 1 %>   <% end %> <% 1.upto(@page_count) do |num| %> "><%= num %>  <% end %> <% if @current_page != @page_count %> <% end %>
<% end %>