Christ allmighty |
![Linux]() |
| Posted by John Vincent (jv) on Mar 21 2008 at 11:17 AM |
| /dev/log >> Linux |
So I'm writing some reports using Ruport for some Samhain log data that's stored in mysql. It has a column called "hash" which is a hash representing the message posted to the log server.
Yeah ActiveRecord did NOT like this at all. This wasn't simply a case of a legacy or non-ActiveRecord-ified table. NOTHING I could find would tell me how to deal with it. Searching for DangerousAttribute (the error thrown by ActiveRecord) just gave me pages and pages of rdoc.
The solution was found when I finally got an idea to search for:
"activerecord + ruby + reserved column name"
Which sent me to this post:
http://www.ruby-forum.com/topic/138433
I'm adding this entry to save myself some freaking sanity in the future.
Back |