Module: InertiaRails::Controller
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/inertia_rails/controller.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
- #redirect_back(fallback_location:, allow_other_host: true, **options) ⇒ Object
- #redirect_to(options = {}, response_options = {}) ⇒ Object
Instance Method Details
#redirect_back(fallback_location:, allow_other_host: true, **options) ⇒ Object
30 31 32 33 34 35 36 37 |
# File 'lib/inertia_rails/controller.rb', line 30 def redirect_back(fallback_location:, allow_other_host: true, **) capture_inertia_errors() super( fallback_location: fallback_location, allow_other_host: allow_other_host, **, ) end |
#redirect_to(options = {}, response_options = {}) ⇒ Object
25 26 27 28 |
# File 'lib/inertia_rails/controller.rb', line 25 def redirect_to( = {}, = {}) capture_inertia_errors() super(, ) end |