<h1>New featured link</h1>

<% if @link.errors.any? %>
  <div class="notice is-danger">
    These errors prevented this link being saved:
    <ul>
      <% @link.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
    </ul>
  </div>
<% end %>

<%= render 'form', url: create_pinned_link_path %>