Updated to Rails 7.0.5.1
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<%= form_with(model: virtual) do |form| %>
|
||||
<%= form_with(model: [@domain,virtual]) do |form| %>
|
||||
<% if virtual.errors.any? %>
|
||||
<div style="color: red">
|
||||
<h2><%= pluralize(virtual.errors.count, "error") %> prohibited this virtual from being saved:</h2>
|
||||
|
||||
@@ -5,6 +5,5 @@
|
||||
<br>
|
||||
|
||||
<div>
|
||||
<%= link_to "Show this virtual", @virtual %> |
|
||||
<%= link_to "Back to virtuals", virtuals_path %>
|
||||
<%= link_to "Back to #{@domain.domain}", domain_path(@domain) %>
|
||||
</div>
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<h1>New virtual</h1>
|
||||
<h1>New virtual for <%= @domain.domain %></h1>
|
||||
|
||||
<%= render "form", virtual: @virtual %>
|
||||
|
||||
<br>
|
||||
|
||||
<div>
|
||||
<%= link_to "Back to virtuals", virtuals_path %>
|
||||
<%= link_to "Back to #{@domain.domain}", domain_path(@domain) %>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user