Hello all, i''m starting a new application and as i''m quite new to rails i want to ask some advise to start this application. I''m planning to create an application with a search and filter function (like a "search for real estate" application) if the user selects an option i want to count the result for the other options available and all that. The idea is to make a back-end where the user can manage the options and the options appear in the search automatically. What would be the best approach to create an application like this in rails? i''ve read something about named scopes and looked in to search logic but i''m not sure this will help me out. If i have to write it from scratch that''s no problem but i don''t want to miss a great gem or option in rails that i didn''t know off. hope somebody can help me on the right way. Thanks in advance! Daniel -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Apr 27, 2:04 pm, Daniel Amsterdam <daniel...-uAjRD0nVeow@public.gmane.org> wrote:> Hello all, > > i''m starting a new application and as i''m quite new to rails i want to > ask some advise to start this application. > > I''m planning to create an application with a search and filter > function (like a "search for real estate" application) if the user > selects an option i want to count the result for the other options > available and all that. The idea is to make a back-end where the user > can manage the options and the options appear in the search > automatically.I''m not quite following what you mean here, but it sounds like Sunspot might be able to help you do this sort of stuff: https://github.com/outoftime/sunspot/wiki For concreteness, here''s a site that uses that plugin to search job postings: http://internships.easycolumbus.com/jobs The counts next to the items in the left-hand navigation are produced by Sunspot ''facets''; if I''m correctly understanding your mail, this may be the sort of thing you''re looking for. --Matt Jones -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Your example of the job search is exactly what i meant. I was looking at Sphinx before for a "drilling down search" and i never heard of but sunspot until now but it looks likes this is a really good solution. I will give it a go as i came across this article: https://github.com/outoftime/sunspot/wiki/Drilling-down-with-facets Thank you Matt On 28 apr, 17:16, Matt Jones <al2o...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Apr 27, 2:04 pm, Daniel Amsterdam <daniel...-uAjRD0nVeow@public.gmane.org> wrote: > > > Hello all, > > > i''m starting a new application and as i''m quite new to rails i want to > > ask some advise to start this application. > > > I''m planning to create an application with a search and filter > > function (like a "search for real estate" application) if the user > > selects an option i want to count the result for the other options > > available and all that. The idea is to make a back-end where the user > > can manage the options and the options appear in the search > > automatically. > > I''m not quite following what you mean here, but it sounds like Sunspot > might be able to help you do this sort of stuff: > > https://github.com/outoftime/sunspot/wiki > > For concreteness, here''s a site that uses that plugin to search job > postings: > > http://internships.easycolumbus.com/jobs > > The counts next to the items in the left-hand navigation are produced > by Sunspot ''facets''; if I''m correctly understanding your mail, this > may be the sort of thing you''re looking for. > > --Matt Jones-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.