% if @example.try(:errors).present? %>
<%= render 'spree/shared/error_messages', :target => @example %>
<% end %>
Edit Example
<%= form_for([:admin, @example]) do |f| %>
<%= render "form", :form => f %>
<%= button t("update") %> <%= t('or') %> <%= link_to t('cancel'), collection_url %>
<% end %>