Blacktalon
November 8th, 2006, 07:45 PM
Hi everyone,
I am creating an audit log for a web application at work. And I need to be able to put the controller name in the migration table in ruby on rails, to show who did what to what. I am not quite sure how to go about this, I currently have it like this just until I or someone else can help me figure out how to currectly do this....
t.column :Controller, :Controller => Controller.name
I highly doubt this is correct, but its just something to help me think.
Thanks,
~BT
I am creating an audit log for a web application at work. And I need to be able to put the controller name in the migration table in ruby on rails, to show who did what to what. I am not quite sure how to go about this, I currently have it like this just until I or someone else can help me figure out how to currectly do this....
t.column :Controller, :Controller => Controller.name
I highly doubt this is correct, but its just something to help me think.
Thanks,
~BT