Class: WcoHosting::TaskTmplsController
- Inherits:
-
ApplicationController
- Object
- Wco::ApplicationController
- ApplicationController
- WcoHosting::TaskTmplsController
- Defined in:
- app/controllers/wco_hosting/task_tmpls_controller.rb
Instance Method Summary collapse
- #create ⇒ Object
- #destroy ⇒ Object
- #edit ⇒ Object
- #index ⇒ Object
- #new ⇒ Object
- #show ⇒ Object
- #update ⇒ Object
Methods inherited from ApplicationController
Instance Method Details
#create ⇒ Object
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! :create, WcoHosting::TaskTmpl if @tmpl.save flash_notice @tmpl else flash_alert @tmpl end redirect_to request.referrer end |
#destroy ⇒ Object
17 18 |
# File 'app/controllers/wco_hosting/task_tmpls_controller.rb', line 17 def destroy end |
#edit ⇒ Object
20 21 |
# File 'app/controllers/wco_hosting/task_tmpls_controller.rb', line 20 def edit end |
#index ⇒ Object
23 24 25 26 |
# File 'app/controllers/wco_hosting/task_tmpls_controller.rb', line 23 def index :index, WcoHosting::TaskTmpl @task_tmpls = WcoHosting::TaskTmpl.all end |
#new ⇒ Object
28 29 30 31 |
# File 'app/controllers/wco_hosting/task_tmpls_controller.rb', line 28 def new :new, WcoHosting::TaskTmpl end |
#show ⇒ Object
33 34 |
# File 'app/controllers/wco_hosting/task_tmpls_controller.rb', line 33 def show end |
#update ⇒ Object
36 37 |
# File 'app/controllers/wco_hosting/task_tmpls_controller.rb', line 36 def update end |