lundi 21 novembre 2016

Heroku displaying pagination different from locally

I am following an online tutorial for Ruby on Rails.

Everything seems to be working but the Heroku deployment shows different page for the Pagination.

Follow the images. HEROKU: Heroku

Locally: Locally & Codes:

app/views/index.html.erb

<% provide(:title, 'All users') %>
<h1>All users</h1>
<%= will_paginate %>
<ul class="users">
  <%= render @users %>
</ul>
<%= will_paginate %>

app/views/users/_user.html.erb

<li>
  <%= gravatar_for user, size: 50 %>
  <%= link_to user.name, user %>
  <% if current_user.admin? && !current_user?(user) %>
    | <%= link_to "delete", user, method: :delete,
                                  data: { confirm: "You sure?" } %>
  <% end %>

</li>

custom.scss

...   
 /* Users index */

    .users {
      list-style: none;
      margin: 0;
      li {
        overflow: auto;
        padding: 10px 0;
        border-bottom: 1px solid $gray-lighter;
      }
    }

Any clue?

Aucun commentaire:

Enregistrer un commentaire