RoR data collection without using form

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs