<%= form_for(@tiny_url) do |f| %>
  <% if @tiny_url.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@tiny_url.errors.count, "error") %> prohibited this tiny_url from being saved:</h2>

      <ul>
      <% @tiny_url.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :url %><br />
    <%= f.text_field :url %>
  </div>
  
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
