A lot :)
This commit is contained in:
parent
aad67af0d1
commit
63fc206c27
153 changed files with 2043 additions and 646 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue