A lot :)
Some checks failed
/ Run tests (push) Successful in 8m56s
/ Run system tests (push) Failing after 1h0m48s
/ Build, push and deploy image (push) Successful in 7m47s

This commit is contained in:
david 2024-09-05 22:54:38 +02:00
parent aad67af0d1
commit 63fc206c27
153 changed files with 2043 additions and 646 deletions

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class ChecklistsController < ApplicationController
before_action :set_checklist, only: %i[show edit update destroy]
@ -7,8 +9,7 @@ class ChecklistsController < ApplicationController
end
# GET /checklists/1
def show
end
def show; end
# GET /checklists/new
def new
@ -16,15 +17,14 @@ class ChecklistsController < ApplicationController
end
# GET /checklists/1/edit
def edit
end
def edit; end
# POST /checklists
def create
@checklist = Checklist.new(checklist_params)
if @checklist.save
redirect_to @checklist, notice: 'Checklist was successfully created.'
redirect_to @checklist, notice: "Checklist was successfully created."
else
render :new, status: :unprocessable_entity
end
@ -33,7 +33,7 @@ class ChecklistsController < ApplicationController
# PATCH/PUT /checklists/1
def update
if @checklist.update(checklist_params)
redirect_to @checklist, notice: 'Checklist was successfully updated.', status: :see_other
redirect_to @checklist, notice: "Checklist was successfully updated.", status: :see_other
else
render :edit, status: :unprocessable_entity
end
@ -42,7 +42,7 @@ class ChecklistsController < ApplicationController
# DELETE /checklists/1
def destroy
@checklist.destroy!
redirect_to checklists_url, notice: 'Checklist was successfully destroyed.', status: :see_other
redirect_to checklists_url, notice: "Checklist was successfully destroyed.", status: :see_other
end
private