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
#admin_add, #admin_bulk_add, #admin_bulk_delete, #admin_bulk_update, #admin_delete, #admin_edit, #admin_index, #admin_json, #admin_json_single, #admin_update, #before_action, #before_before_action, #hashify_query_string, #init_cart, #logged_in?, #logged_in_user, #login_user, #logout_user, #parse_url_params, #reject_param, #user_is_allowed, #user_is_allowed_to, #validate_cookie, #validate_token, #var, #verify_logged_in
Instance Method Details
#index ⇒ Object
GET /admin
6 7 8 9 10 11 12 |
# File 'app/controllers/caboose/admin_controller.rb', line 6 def index if logged_in? redirect_to '/admin/pages' return end @return_url = params[:return_url].nil? ? '/admin/pages' : params[:return_url] end |
#station ⇒ Object
GET /station
15 16 17 18 |
# File 'app/controllers/caboose/admin_controller.rb', line 15 def station @user = logged_in_user render :layout => 'caboose/station' end |