Something not right here with Kate.
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -5,5 +5,5 @@
|
||||
<br>
|
||||
|
||||
<div>
|
||||
<%= link_to "Back to credentials", credentials_path %>
|
||||
<%= link_to "Back to the domain", domain_path(@domain) %>
|
||||
</div>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user