Module: Trestle::Controller::Location
- Extended by:
- ActiveSupport::Concern
- Included in:
- ApplicationController
- Defined in:
- app/controllers/concerns/trestle/controller/location.rb
Instance Method Summary collapse
-
#set_trestle_location_header ⇒ Object
The X-Trestle-Location header is set to indicate that the remote form has triggered a new page URL (e.g. new -> show) without demanding a full page refresh.
Instance Method Details
#set_trestle_location_header ⇒ Object
The X-Trestle-Location header is set to indicate that the remote form has triggered a new page URL (e.g. new -> show) without demanding a full page refresh.
12 13 14 15 16 |
# File 'app/controllers/concerns/trestle/controller/location.rb', line 12 def set_trestle_location_header unless modal_request? || response.location headers["X-Trestle-Location"] = request.path end end |