Sha256: 0598273b1fdfd6c45817da36d2daf1dbdf87f5e1c284eab86d1599f564fc978e
Contents?: true
Size: 722 Bytes
Versions: 2
Compression:
Stored size: 722 Bytes
Contents
class TestsController < ApplicationController def blank end def return_with_path return_to_referer save_path, alert: 'Go away!', status: 301 end def save save_referer end def redirect_with_options redirect_back notice: 'Created!', status: :moved_permanently end def clear_and_save clear_referer save_referer end def return_with_options return_to_referer notice: 'Updated!', status: 302 end def clear_and_redirect clear_referer redirect_back save_path end def offsite_with_path redirect_back save_path, offsite: true, alert: 'Offsite with default!' end def offsite redirect_back offsite: true, alert: 'Offsite without default!' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jump_back-0.3.2 | spec/dummy/app/controllers/tests_controller.rb |
jump_back-0.3.1 | spec/dummy/app/controllers/tests_controller.rb |