Class: ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
lib/generators/voxality_core/templates/app/controllers/application_controller.rb

Overview

Application controller, global controller

Direct Known Subclasses

VoxalityCoreController

Instance Method Summary collapse

Instance Method Details

#commonObject



5
6
7
# File 'lib/generators/voxality_core/templates/app/controllers/application_controller.rb', line 5

def common
  render partial: '/common.html.erb'
end

#defaultObject



9
10
11
12
13
# File 'lib/generators/voxality_core/templates/app/controllers/application_controller.rb', line 9

def default
  respond_to do |format|
    format.html { render template: 'default.html.erb' }
  end
end