Sahil Dave wrote: > > I need to search users based on the age stored in the profile > I tried using the :joins option of find. but it seems it works only on > tables in the same db. >
But of course. So search the Profiles, get your list of user_id's that match the criteria, then select the Users. -- 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---