%= form_for(@planets_exoplanet) do |f| %>
<% if @planets_exoplanet.errors.any? %>
<%= pluralize(@planets_exoplanet.errors.count, "error") %> prohibited this planets_exoplanet from being saved:
<% @planets_exoplanet.errors.full_messages.each do |msg| %>
- <%= msg %>
<% end %>
<% end %>
<%= f.label :name %>
<%= f.text_field :name %>
<%= f.submit %>
<% end %>