<% if current_controller.errors? && !current_action.errors_index? %> <%= link_to errors_path, class: button_classes(icon: true) do %> <%= bootstrap_svg "arrow-left" %> Back to errors <% end %> <% end %> <%= button_to error_path(error), method: :patch, class: button_classes(type: :primary_ghost), params: { error: { resolved_at: Time.now } } do %> Resolve Error #<%= error.id %> <% end %>