Class: Helpdesk::RooterController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Helpdesk::RooterController
- Defined in:
- app/controllers/helpdesk/rooter_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
#default_url_options, #ensure_user
Instance Method Details
#index ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'app/controllers/helpdesk/rooter_controller.rb', line 3 def index case Helpdesk.root_controller when 'faqs' redirect_to faqs_url when 'tickets' redirect_to tickets_url when 'subscribers' redirect_to subscribers_url else redirect_to faqs_url end end |