I'm trying to save the site that a user came from when they sign up.
Right now I have a before_filter in my ApplicationController:
session['referer'] = request.env["HTTP_REFERER"] unless
@user = User.new(params[:user])
if @user.save_with(session[:referer]) .... end
User def save_with(referer) self.referer = referer unless referer ==
Then when a user is created, it checks this session variable and sets
it to nil. This is buggy as it only works sometimes and I cannot seem
to figure out why. Any ideas what could be going on?