I imagine this is a simple problem, however can’t seem to find the
solution!
In one of my mysql tables, I have a “time” field for storing elapsed
time, HH:MM:SS.
mysql> select * from rides;
±—±----------±-----------+
| id | ride_time | ride_date |
±—±----------±-----------+
| 1 | 00:37:44 | 2007-02-15 |
±—±----------±-----------+
However when I get rails to list my rides, it does some funky business
with the “ride_time” field, namely adding a date.
Listing rides
Ride time Ride date
Sat Jan 01 00:37:44 EST 2000 2007-02-15 Show Edit Destroy
How do I just print the time?
Thanks,
ajt.