Add users controller
Some checks are pending
CI / scan_ruby (push) Waiting to run
CI / scan_js (push) Waiting to run
CI / lint (push) Waiting to run
CI / test (push) Waiting to run

This commit is contained in:
sto
2025-03-14 16:37:21 +01:00
parent 50280ce389
commit 026bda2a99
14 changed files with 110 additions and 6 deletions

View File

@@ -0,0 +1,9 @@
= form_with model: user do |form|
div
= form.label :username
= form.text_field :username
div
= form.label :email_address
= form.text_field :email_address
div
= form.submit

View File

@@ -0,0 +1,4 @@
.container
h1 Edit settings
= render "form", user: @user

View File

@@ -0,0 +1 @@
.container

View File

@@ -0,0 +1,4 @@
.container
h1 Create a new user
= render "form", user: @user

View File

@@ -0,0 +1,9 @@
.container
h1 = @user.username
p
|> Email:
= @user.email_address
a.btn.btn-primary.mt-4 href=edit_user_path(@user)
| Edit