Module: JumpBack::Helpers

Defined in:
lib/jump_back/link_back.rb

Instance Method Summary collapse

Instance Method Details



5
6
7
8
# File 'lib/jump_back/link_back.rb', line 5

def link_back(name='back', path=root_path, options={})
  args = HelpersArguments.parse(name, path, options, root_path)
  link_to args[:name], PathFinder.new(request, args[:path], args[:jump_back_options]).path, args[:redirect_options]
end