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,5 +1,7 @@
# frozen_string_literal: true
class LinkCategoriesController < ApplicationController
before_action :set_link_category, only: %i[ show edit update destroy ]
before_action :set_link_category, only: %i[show edit update destroy]
# GET /link_categories
def index
@ -7,8 +9,7 @@ class LinkCategoriesController < ApplicationController
end
# GET /link_categories/1
def show
end
def show; end
# GET /link_categories/new
def new
@ -16,8 +17,7 @@ class LinkCategoriesController < ApplicationController
end
# GET /link_categories/1/edit
def edit
end
def edit; end
# POST /link_categories
def create
@ -46,13 +46,14 @@ class LinkCategoriesController < ApplicationController
end
private
# Use callbacks to share common setup or constraints between actions.
def set_link_category
@link_category = LinkCategory.find(params[:id])
end
# Only allow a list of trusted parameters through.
def link_category_params
params.require(:link_category).permit(:name, :description, :rich_text)
end
# Use callbacks to share common setup or constraints between actions.
def set_link_category
@link_category = LinkCategory.find(params[:id])
end
# Only allow a list of trusted parameters through.
def link_category_params
params.require(:link_category).permit(:name, :description, :rich_text)
end
end