<% if @result %>
  toastr.success("<%= t('successes.has_been_successfully_updated', model: 'Database') %>");
<% else %>
  toastr.error("<%= t('errors.unable_to_save', model: 'database') %>");
<% end %>