Class: WcoHosting::TaskTmplsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/wco_hosting/task_tmpls_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#home

Instance Method Details

#createObject



4
5
6
7
8
9
10
11
12
13
14
15
# File 'app/controllers/wco_hosting/task_tmpls_controller.rb', line 4

def create
  @tmpl = WcoHosting::TaskTmpl.new params[:task_tmpl].permit!
  authorize! :create, WcoHosting::TaskTmpl

  if @tmpl.save
    flash_notice @tmpl
  else
    flash_alert @tmpl
  end

  redirect_to request.referrer
end

#destroyObject



17
18
# File 'app/controllers/wco_hosting/task_tmpls_controller.rb', line 17

def destroy
end

#editObject



20
21
# File 'app/controllers/wco_hosting/task_tmpls_controller.rb', line 20

def edit
end

#indexObject



23
24
25
26
# File 'app/controllers/wco_hosting/task_tmpls_controller.rb', line 23

def index
  authorize! :index, WcoHosting::TaskTmpl
  @task_tmpls = WcoHosting::TaskTmpl.all
end

#newObject



28
29
30
31
# File 'app/controllers/wco_hosting/task_tmpls_controller.rb', line 28

def new
  authorize! :new, WcoHosting::TaskTmpl

end

#showObject



33
34
# File 'app/controllers/wco_hosting/task_tmpls_controller.rb', line 33

def show
end

#updateObject



36
37
# File 'app/controllers/wco_hosting/task_tmpls_controller.rb', line 36

def update
end