Module: JumpBack::Helpers
- Defined in:
- lib/jump_back/link_back.rb
Instance Method Summary collapse
Instance Method Details
#link_back(name = 'back', path = root_path, options = {}) ⇒ Object
5 6 7 8 |
# File 'lib/jump_back/link_back.rb', line 5 def link_back(name='back', path=root_path, ={}) args = HelpersArguments.parse(name, path, , root_path) link_to args[:name], PathFinder.new(request, args[:path], args[:jump_back_options]).path, args[:redirect_options] end |