|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Getting column names from a record set
Hello,
I'm trying to get the column names associated w/ this record set: account_all = Account.find(:all) Since account_all is an array - how do I get the names? I know there's got to be a simple way to do this. |
|
#2
|
|||
|
|||
|
Sweet - here's what I was looking for:
account_all.first.attributes.keys |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Ruby Programming > Getting column names from a record set |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|