module BackFormer::Redirecting
Public Instance Methods
redirect_back_former(path = root_path, options = {})
click to toggle source
# File lib/back_former/redirecting.rb, line 5 def redirect_back_former(path = root_path, options = {}) redirect_to(session[:back_former_previous_path] || path, options) end
save_previous_path()
click to toggle source
# File lib/back_former/redirecting.rb, line 9 def save_previous_path session[:back_former_previous_path] = request.path end