/ Published in: Rails
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
def store_location_with_domain session[:return_to] = request.url end
URL: http://www.railspikes.com/2008/5/1/quick-tip-store_location-with-subdomains