Class: CustomTab::HostsController

Inherits:
HostsController
  • Object
show all
Defined in:
app/controllers/custom_tab/hosts_controller.rb

Overview

Example: Plugin’s HostsController inherits from Foreman’s HostsController

Instance Method Summary collapse

Instance Method Details

#summaryObject

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