Class: Avo::HomeController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Avo::HomeController
- Defined in:
- app/controllers/avo/home_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
#_current_user, #check_avo_license, #context, #exception_logger, #init_app, #render
Methods included from UrlHelpers
#edit_resource_path, #new_resource_path, #related_resources_path, #resource_attach_path, #resource_detach_path, #resource_path, #resources_path
Methods included from ApplicationHelper
#a_button, #a_link, #button_classes, #empty_state, #get_model_class, #input_classes, #render_license_warning, #render_license_warnings, #svg, #turbo_frame_wrap
Instance Method Details
#failed_to_load ⇒ Object
15 16 |
# File 'app/controllers/avo/home_controller.rb', line 15 def failed_to_load end |
#index ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'app/controllers/avo/home_controller.rb', line 5 def index if Avo.configuration.home_path.present? redirect_to Avo.configuration.home_path elsif !Rails.env.development? @page_title = "Get started" resource = Avo::App.resources.min_by { |resource| resource.model_key } redirect_to resources_path(resource: resource) end end |