Finding how many times was my website visited?

Hi Everyone,

Good Day!

I wanna to add to my blog a counter for displaying, how many times was my website visited. I would like to solve it through ruby (not GA or something like that). Is available any gem that do this task (also with checking IP address,the time of latest visited and visited count).

Please Advice.

Thank You.

check newrelic_rpm

Hi Crispin Schäffler,

Good Day !

As you said i followed your instructions, but i got an error…

It is my application controller,

class ApplicationController < ActionController::Base

before_filter :track

well… thats what happens if you write it quick and dirty. it was not meant to be copy and paste… sorry… but what exactly is line 7 of your applications controller? did you have sessioons enabled?

well... thats what happens if you write it quick and dirty. it was not meant
to be copy and paste... sorry... but what exactly is line 7 of your
applications controller? did you have sessioons enabled?

I think maybe the problem is that it should be
trackobject = Visit.new( ...

@OP I assume you are a newcomer to Rails.
I think you might benefit from working right through a good tutorial
such as railstutorial.org
which is free to use online.

Colin

Track Model with date and IP fields.

I hope you don’t have ****