Class: RootController

Inherits:
ActionController::API
  • Object
show all
Defined in:
app/controllers/root_controller.rb

Overview

The root response, redirect to Rails routes info path.

Instance Method Summary collapse

Instance Method Details

#indexObject


3
4
5
6
# File 'app/controllers/root_controller.rb', line 3

def index
  routes_path = '/rails/info/routes'
  redirect_to routes_path
end