fix spawn server form

This commit is contained in:
CroneKorkN 2026-01-18 17:59:11 +01:00
parent 3b82be0b7d
commit 11d5baf130
Signed by: cronekorkn
SSH key fingerprint: SHA256:v0410ZKfuO1QHdgKBsdQNF64xmTxOF8osF1LIqwTcVw
2 changed files with 2 additions and 1 deletions

View file

@ -1,5 +1,5 @@
class ServersController < ApplicationController
before_action :set_server, only: [ :show, :edit, :update, :destroy, :start, :stop, :restart ]
before_action :set_server, only: [ :show, :destroy, :start, :stop, :restart ]
def index
@servers = current_user.servers.includes(:server_template).order(created_at: :desc)

View file

@ -7,6 +7,7 @@
= @server_template.name
= form_with model: @server, local: true do |f|
= hidden_field_tag :server_template_id, @server_template.id if @server_template
- if @server.errors.any?
.alert.alert--error
h4 = pluralize(@server.errors.count, "error")