Class: CorporationsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- CorporationsController
- Defined in:
- app/controllers/corporations_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
#current_navable, #current_navable=, #current_user, #point_navigation_to, #redirect_www_subdomain, #set_locale
Instance Method Details
#index ⇒ Object
7 8 9 10 11 12 |
# File 'app/controllers/corporations_controller.rb', line 7 def index respond_to do |format| format.html { redirect_to Corporation.corporations_parent } format.json { respond_with @corporations.pluck(:name) } end end |