Forum: Ruby on Rails RoR data collection without using form

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Matthew Frater (Guest)
on 2006-05-05 13:44
(Received via mailing list)
Interesting question: I'm in the middle of developing a RubyOnRails
with a MySQL database backend. Most of it is going amazingly well, but
hit a snag: I need to write some "event log" code. The client wants to
a DB table full of "events" - i.e. client logins, page views, client IP
addresses and so forth. I know how to get the actual data - for example,
there's a nice Rails method called RemoteIP() that will cature an IP
address. Problem is I'm puzzling over how to write the class and methods
actually save the data into the DB. RoR doesn't seem to have anything
like a
"PageLoad" event in the same way that .Net does, for example.

Please help, anyone!!
- Matthew
Nicholas T. (Guest)
on 2006-05-05 14:00
(Received via mailing list)
This topic is locked and can not be replied to.