Class: LogsExplorer::HomeController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/logs_explorer/home_controller.rb

Instance Method Summary collapse

Methods included from ApplicationHelper

#active?, #format_datetime, #icon, #insert_css_file, #insert_js_file

Instance Method Details

#indexObject



9
10
11
12
13
14
15
# File 'app/controllers/logs_explorer/home_controller.rb', line 9

def index
  if LogsExplorer.logs.any?
    redirect_to logs_explorer.watch_url(name: LogsExplorer.logs[0][:name])
  else
    render text: 'Please configure initializer: https://github.com/balakirevs/logs_explorer'
  end
end