I want to list down all the column details for a given table and I was able to do it with the following code
<Model Name>.content_columns
Ex: User.content_columns
But my problem is it is not returning the id column of the table (I have default rails naming convention as auto increment integer column called id)
Is there anyway of enabling the ‘id’ column or is this the default behavior of rails?
I’m riding Rails 3.0.10 on linux
should work fine.