Greetings, Looking for thoughts and ideas to implement an "advanced" search functionality. I have, for example, a cd that has and belongs to many artists, habtm genres, has many tracks, etc... To search through various fields in the cd itself is very easy, and it also seems easy to look for specific genres, artists, etc... But, what is the best/easiest way to search multi-way criteria, like cd''s for artists in a particular genre? Do any of the related/helper functions for the habtm/hm/etc associations help? Thanks for your thoughts, Steve
Use find_by_fielda_and_fieldb_and_fieldc( fielda_val, fieldb_val, fieldc_val ) -- John W Higgins wishdev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
On Jul 13, 2005, at 1:36 PM, John Higgins wrote:> Use find_by_fielda_and_fieldb_and_fieldc( fielda_val, fieldb_val, > fieldc_val )Does that work if fielda is in the parent, but fieldb and fieldc are fields in a related habtm record? I didn''t think it would. Further, there would be many permutations, since an advanced search field may have, say, ten or more fields of possible criteria, but you wouldn''t know which criteria the user actually entered. I suppose populating non-user-supplied fields with a generic wildcard would allow you to use one big global search, I''m just not sure about the searching through related records.
I was touting the virtues of RoR to a friend of mine and I was stumped by one of his questions. How many books are there on Ruby and on RoR? And How many books are currently being written on this topic? I guess that is a fair question. I am turning to this forum to get a realistic answer . Thanks. - Neeraj
The first Rails book is out in print form next week, I believe. There are a couple of Ruby books. Pickaxe is the camel for Ruby. (what a weird sentence) On Jul 13, 2005, at 3:34 PM, Neeraj Kumar wrote:> I was touting the virtues of RoR to a friend of mine and I was stumped > by one of his questions. How many books are there on Ruby and on RoR? > And How many books are currently being written on this topic? > > I guess that is a fair question. I am turning to this forum to get a > realistic answer . > > Thanks. > - Neeraj > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Neeraj Kumar <neeraj.jsr-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:> I was touting the virtues of RoR to a friend of mine and I was stumped > by one of his questions. How many books are there on Ruby and on RoR? > And How many books are currently being written on this topic? > > I guess that is a fair question. I am turning to this forum to get a > realistic answer .Besides this forum, the wiki is a great resource: http://wiki.rubyonrails.com/rails/show/BookList -- doug-jGAhs73c5XxeoWH0uzbU5w@public.gmane.org
There''s also the Sam''s Teach Yourself Ruby in 21 days... Although it''s not as detailed as the PickAxe book, it certainly offers a nice introduction: http://www.amazon.com/exec/obidos/tg/detail/-/0672322528/ On 7/13/05, Toby Boudreaux <rails-lb8SQxIZKShBDgjK7y7TUQ@public.gmane.org> wrote:> The first Rails book is out in print form next week, I believe. > > There are a couple of Ruby books. > > Pickaxe is the camel for Ruby. (what a weird sentence) > > > > On Jul 13, 2005, at 3:34 PM, Neeraj Kumar wrote: > > > I was touting the virtues of RoR to a friend of mine and I was stumped > > by one of his questions. How many books are there on Ruby and on RoR? > > And How many books are currently being written on this topic? > > > > I guess that is a fair question. I am turning to this forum to get a > > realistic answer . > > > > Thanks. > > - Neeraj > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- - Frank FrankManno.com <a href="http://www.spreadfirefox.com/?q=affiliates&id=2496&t=1">Get Firefox!</a>
On 7/13/05, Neeraj Kumar <neeraj.jsr-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I was touting the virtues of RoR to a friend of mine and I was stumped > by one of his questions. How many books are there on Ruby and on RoR? > And How many books are currently being written on this topic? > > I guess that is a fair question. I am turning to this forum to get a > realistic answer .For Ruby, you can find a list here: http://www.rubygarden.org/ruby?RubyBookList The first Rails book to hit the shelves (soon?), but currently available as a PDF: http://www.pragmaticprogrammer.com/titles/rails/ a couple other Rails books in the works (seems there are 5 or so): http://www.robbyonrails.com/articles/2005/04/25/i-am-writing-a-ruby-on-rails-book http://weblog.rubyonrails.com/archives/2005/03/22/4th-book-coming-rails-developer-notebook/> Thanks. > - Neeraj > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Bill Guindon (aka aGorilla)
On Wed, 2005-07-13 at 15:34 -0400, Neeraj Kumar wrote:> I was touting the virtues of RoR to a friend of mine and I was stumped > by one of his questions. How many books are there on Ruby and on RoR? > And How many books are currently being written on this topic? > > I guess that is a fair question. I am turning to this forum to get a > realistic answer .Maybe you should point out how invalid the question is for evaluating a language or framework. Complaints about the language aside, look back to how many books where published about php back in the v3 days. While I didn''t know perl pre 5.005 days, but I am sure it was similar back then. If you look at the growth rate, ruby will catch up pretty quickly. -- Steven Critchfield critch-wQLwMjUOumVBDgjK7y7TUQ@public.gmane.org KI4KTY
Neeraj Kumar wrote:> I was touting the virtues of RoR to a friend of mine and I was stumped > by one of his questions. How many books are there on Ruby and on RoR? > And How many books are currently being written on this topic? > > I guess that is a fair question. I am turning to this forum to get a > realistic answer . >See http://www.ruby-doc.org/bookstore/ Disclaimer: the book links include a B&N affiliate code which, if following the link leads to a purchase, means I get some fraction of the sales (which in turn helps pay for ruby-doc.org). James -- http://www.ruby-doc.org - The Ruby Documentation Site http://www.rubyxml.com - News, Articles, and Listings for Ruby & XML http://www.rubystuff.com - The Ruby Store for Ruby Stuff http://www.jamesbritt.com - Playing with Better Toys
On Jul 13, 2005, at 12:51 PM, Steven Palm wrote:> On Jul 13, 2005, at 1:36 PM, John Higgins wrote: > >> Use find_by_fielda_and_fieldb_and_fieldc( fielda_val, fieldb_val, >> fieldc_val ) >> > > Does that work if fielda is in the parent, but fieldb and fieldc > are fields in a related habtm record? I didn''t think it would. > Further, there would be many permutations, since an advanced search > field may have, say, ten or more fields of possible criteria, but > you wouldn''t know which criteria the user actually entered. I > suppose populating non-user-supplied fields with a generic wildcard > would allow you to use one big global search, I''m just not sure > about the searching through related records.Have you tried the text search option? http://wiki.rubyonrails.com/rails/show/TextSearch Duane Johnson (canadaduane)
On Wed, 2005-07-13 at 15:34 -0400, Neeraj Kumar posted a question to the list by replying to another message on a different topic and changing the subject line. Don''t! It plays havoc with email clients that use threading, which on a busy list like this one is v useful. cheers, Tom Weissmann ___________________________________________________________ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com