You can use astock.each or other methods to iterate the collection, but I think maybe I do not understand what you are trying to achieve.
2009/3/30 Nick Hoyle <[email protected]> > > > > > If you mean that it does not work if you do query 2 first, it may be > > because > > astock has not been found yet. If you mean it does not work if the > > query 1 > > is find(:all,..) then astock will be a collection so astock.Symbol is > > not > > valid. astock[0].Symbol might be, for example. > > > thanks for quick reply > > Yeah astock[0].symbol does work. I need it to compare the collection. so > each row in the stored array > > is this possible? > -- > 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 -~----------~----~----~----~------~----~------~--~---

