Something not right here with Kate.

This commit is contained in:
2023-06-21 11:07:34 +01:00
parent 1eb8c2753f
commit d882c1a521
6 changed files with 10 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
<%= form_with(model: credential) do |form| %>
<%= form_with(model: [@domain, credential]) do |form| %>
<% if credential.errors.any? %>
<div style="color: red">
<h2><%= pluralize(credential.errors.count, "error") %> prohibited this credential from being saved:</h2>

View File

@@ -5,5 +5,5 @@
<br>
<div>
<%= link_to "Back to credentials", credentials_path %>
<%= link_to "Back to the domain", domain_path(@domain) %>
</div>

View File

@@ -2,10 +2,7 @@
<h1><%= @domain.domain %></h1>
<div>
<%= link_to "Edit this domain", edit_domain_path(@domain) %> |
<%= link_to "Back to domains", domains_path %>
<%= button_to "Destroy this domain", @domain, method: :delete %>
<%= link_to "Edit this domain", edit_domain_path(@domain) %> | <%= link_to "Back to domains", domains_path %> | <%= button_to "Destroy this domain", @domain, method: :delete %>
</div>
<h2>Credentials (<%= @domain.credentials.count %>)</h2>