Re: simple search form - ruby newbie

Taylor Strait
Wed, 13 Dec 2006 22:07:58 -0000

Its not really clear what the relationship is between IpAddresses and
Scans.  Depending on that, using

@scans = IpAddress.find_by_ip(params[:query]).scans

may give you what you want.

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