Rails count number of attributes

In Rails 3.1, how can I get a count of the number of attributes an object has?

For instance, I have an object called Projects and I would like to know how many attributes (columns) it has.


Here you go:


Docs here.

Need Your Help

Xdebug interrupts the running of PHP script

php netbeans yii xdebug

I'm using Netbeans 7.3 and xDebugon WAMP. Here is my configuration of xDebugin php.ini:

Manual data binding using WriteValue

.net vb.net winforms data-binding bindingsource

If I turn off automatic updating of a binding data source by setting DataSourceUpdateMode = Never and then use a button to update the whole lot (using binding.WriteValue), a problem occurs - Namely...