fede wrote:> I''m trying to make this work:
> @targets = Targets.find(:all, :conditions => ''description LIKE
:id '')
> I know it can''t work having the :id in there just like that but I
> can''t find a way to embed that in there. Thanks in advance guys!
I am not sure exactly what you are trying to accomplish, but maybe this
form of #find will help you out:
@targets = Targest.find(:all, :conditions => [''description LIKE
?'',
whatever])
David B. Williams
http://www.cybersprocket.com
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---