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