<%= form_for(@planet) do |f| %> <% if @planet.errors.any? %>

<%= pluralize(@planet.errors.count, "error") %> prohibited this planet from being saved:

<% end %>
<%= f.label :name %>
<%= f.text_field :name %>
<%= f.submit %>
<% end %>