search for: mycar

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

Did you mean: myvar
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? @myca...