Class: Caboose::ModalController

Inherits:
ApplicationController show all
Defined in:
app/controllers/caboose/modal_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#add_ga_event, #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, #under_construction_or_forwarding_domain?, #user_is_allowed, #user_is_allowed_to, #validate_cookie, #validate_token, #var, #verify_logged_in

Instance Method Details

#indexObject


12
13
14
15
# File 'app/controllers/caboose/modal_controller.rb', line 12

def index
  @url = "/#{params[:url]}"
  @url << "?#{request.query_string}" if request.query_string      
end

#layoutObject


6
7
8
# File 'app/controllers/caboose/modal_controller.rb', line 6

def layout
  render 'layouts/caboose/modal', layout: false
end