Files
bit/app/views/links/_index.html.erb
T
Juan Rodriguez 73b674b613 refactor: Username and slug unique indexes, before actions for set link and user
confirm_password_validation around action, unnecessary helpers removed, rubocop-rails suggestions applied

Add username index and unique slug index migrations
2021-06-15 15:24:34 -05:00

8 lines
311 B
Plaintext

<% unless @current_user.nil? %>
<h2 class="text-2xl leading-6 font-medium text-gray-900 mx-4 my-6">My links</h2>
<div data-links-target="userLinks">
<% @current_user.links.order(created_at: :desc).each do |link| %>
<%= render partial: "links/show", locals: { link: link } %>
<% end %>
</div>
<% end %>