Update
This commit is contained in:
15
app/controllers/node_controller.rb
Normal file
15
app/controllers/node_controller.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
class NodeController < ApplicationController
|
||||
def index
|
||||
@hosts = Array.new
|
||||
|
||||
if get_hosts.blank?
|
||||
flash[:danger] = "Check Server"
|
||||
else
|
||||
@hosts = get_hosts
|
||||
end
|
||||
end
|
||||
|
||||
def get_hosts
|
||||
return ['2', 'aaa', 'bbb', 'ccc']
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user