app/views/short_urls/_form.html.erb
<%= form_for(@short_url) do |f| %>
<%= render partial: 'shared/error_messages', locals: { object: @short_url } %>
<%= f.label :redirect, 'Redirecting to' %>
<%= f.url_field :redirect %>
<fieldset class="fieldset">
<legend>Short URL Slug</legend>
<%= f.label :slug, 'Custom slug' %>
<%= f.text_field :slug %>
</fieldset>
<%= f.submit 'Save changes', class: 'button large' %>
<% end %><!-- end `form_for(@short_url)` -->