search for: mycars

Displaying 1 result from an estimated 1 matches for "mycars".

Did you mean: mtcars
2006 Aug 15
4
question about hashes in views that model a table?
if i have a table called cars with columns called year and type, and i create a model and do this @mycars = Cars.find(:all) in my view i have something like this for cars in @mycars do something like print out cars.type i know that @mycars in a hash where each key is a column name paired with its corresponding value right? without the for loop, how can i access the 2nd record directly? @mycar...