car_price = UsedCar.find(:all, :order => 'price DESC' )

 puts "#{car_price[0]}"


I used the above syntax and it o/p s it as


merjis-mac-mini:seed_trademark dakshata$ rake db:seed
(in /Users/dakshata/source/learning-ruby/seed_trademark)
#<UsedCar:0x1a08628>


Any ideas???

Thanks

Dakshata
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to