Class: RequestRefinery::ControllerFiltersController

Inherits:
ApplicationController show all
Defined in:
app/controllers/request_refinery/controller_filters_controller.rb

Instance Method Summary collapse

Methods included from ControllerMethods

#authorized_to?, #enforce_request_permissions, #unauthorized_request

Instance Method Details

#createObject

POST /controller_filters



26
27
28
29
30
31
32
33
34
# File 'app/controllers/request_refinery/controller_filters_controller.rb', line 26

def create
  @controller_filter = ControllerFilter.new(controller_filter_params)

  if @controller_filter.save
    redirect_to @controller_filter, notice: 'Controller filter was successfully created.'
  else
    render :new
  end
end

#destroyObject

DELETE /controller_filters/1



46
47
48
49
# File 'app/controllers/request_refinery/controller_filters_controller.rb', line 46

def destroy
  @controller_filter.destroy
  redirect_to controller_filters_url, notice: 'Controller filter was successfully destroyed.'
end

#editObject

GET /controller_filters/1/edit



22
23
# File 'app/controllers/request_refinery/controller_filters_controller.rb', line 22

def edit
end

#indexObject

GET /controller_filters



8
9
10
# File 'app/controllers/request_refinery/controller_filters_controller.rb', line 8

def index
  @controller_filters = ControllerFilter.all
end

#newObject

GET /controller_filters/new



17
18
19
# File 'app/controllers/request_refinery/controller_filters_controller.rb', line 17

def new
  @controller_filter = ControllerFilter.new
end

#showObject

GET /controller_filters/1



13
14
# File 'app/controllers/request_refinery/controller_filters_controller.rb', line 13

def show
end

#updateObject

PATCH/PUT /controller_filters/1



37
38
39
40
41
42
43
# File 'app/controllers/request_refinery/controller_filters_controller.rb', line 37

def update
  if @controller_filter.update(controller_filter_params)
    redirect_to @controller_filter, notice: 'Controller filter was successfully updated.'
  else
    render :edit
  end
end