i cannot get the brackets right, you seem to have more brackets on the ( than on the ), when i mess around with this it just throws all kinds of errors.
here is another query i am trying to write using :find Result.find(:all, :conditions => 'resulttype = (select resulttype from results where id = 1)') when i run this with debug <%= debug Result.find(:all, :conditions => 'resulttype = (select resulttype from results where id = 1)') %> i get: resulttype = 'pass' id = '1' but when i remove debuy, i just get ####, adding a h, like this <%= h Result.find(:all, :conditions => 'resulttype = (select resulttype from results where id = 1)') %> i get #<Result:0x395f080> can anyone point me to a good source to understand more about the :find, because its quite obscure on the rails reference. -- 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 -~----------~----~----~----~------~----~------~--~---

