basic entity get/show

This commit is contained in:
2023-01-13 21:47:31 +02:00
parent 26ea76c8e9
commit 38f51a5de6
13 changed files with 74 additions and 38 deletions

View File

@ -1,5 +1,8 @@
class EntitiesController < ApplicationController
before_action :set_entity, only: %i[ show edit update destroy ]
before_action :authenticate_member!
# redirect_to main_app.root_path unless current_member.admin?
# GET /entities
def index
@ -53,6 +56,6 @@ class EntitiesController < ApplicationController
# Only allow a list of trusted parameters through.
def entity_params
params.require(:entity).permit(:name, :ha_id, :type , :member_id)
params.require(:entity).permit(:name, :ha_id, :ha_type, :member_id)
end
end