73b674b613
confirm_password_validation around action, unnecessary helpers removed, rubocop-rails suggestions applied Add username index and unique slug index migrations
8 lines
311 B
Plaintext
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 %> |