Forget about how you have done it so far for the moment.  Is it possible to
write out in one sentence what you want you want @stocks_load to contain?
Find all the stocks where .....

2009/3/30 Nick Hoyle <[email protected]>

>
> Colin Law wrote:
> > 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]>
>
> In the first query i am getting all the symbols for stocks where the
> user id is for example 1 in table mystocks
>
> now i have all the symbols that user id 1 has
>
> then i am doing a second query on another table called stocks to compare
> the symbols found in the first query to the symbols in stocks then
> outpuuting the result
> --
> 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