<%% if @<%= @resource %>.errors.any? %> # handle errors <%% else %> # perform create actions <%% end %>