Class: CustomTab::HostsController
- Inherits:
-
HostsController
- Object
- HostsController
- CustomTab::HostsController
- Defined in:
- app/controllers/custom_tab/hosts_controller.rb
Overview
Example: Plugin’s HostsController inherits from Foreman’s HostsController
Instance Method Summary collapse
-
#summary ⇒ Object
change layout if needed layout ‘custom_tab/layouts/new_layout’.
Instance Method Details
#summary ⇒ Object
change layout if needed layout ‘custom_tab/layouts/new_layout’
7 8 9 10 11 |
# File 'app/controllers/custom_tab/hosts_controller.rb', line 7 def summary render :partial => 'summary', :locals => { :host => @host } rescue ActionView::Template::Error => exception process_ajax_error exception, 'fetch interfaces information' end |