moved ruby code from userstats.erb to user.rb