basic entity get/show
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user