In my controller i am doing these querys.

Query 1

astock = MyStock.find(:first,:select => "Symbol", :conditions
=>["user_id = ?", session[:idnum]])

im wanting to find all the rows from my stock with that particular id.
this works fine.

i then do a second query


Query 2

@stocks_load = Stocks.find(:all, :conditions => ["Symbol =
?",astock.Symbol] )

this also works fine unless the first query is find(:all then i get
symbol as a undefined method error.

Do i need some sort of loop that does the query comparsion in row found
from the first query?

Any help or suggestions would be great!

Regards

Nick
-- 
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