Class: Caboose::AdminController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Caboose::AdminController
- Defined in:
- app/controllers/caboose/admin_controller.rb
Instance Method Summary collapse
-
#index ⇒ Object
GET /admin.
-
#station ⇒ Object
GET /station.
Methods inherited from ApplicationController
#before_action, #before_before_action, #logged_in?, #logged_in_user, #login_user, #parse_url_params, #reject_param, #user_is_allowed, #validate_cookie, #validate_token, #var, #verify_logged_in
Instance Method Details
#index ⇒ Object
GET /admin
6 7 8 |
# File 'app/controllers/caboose/admin_controller.rb', line 6 def index @return_url = params[:return_url].nil? ? '/station' : params[:return_url] end |
#station ⇒ Object
GET /station
11 12 13 14 |
# File 'app/controllers/caboose/admin_controller.rb', line 11 def station @user = logged_in_user render :layout => 'caboose/station' end |