search for: article1

Displaying 3 results from an estimated 3 matches for "article1".

Did you mean: articles
2007 Apr 24
6
Questions about table association while using acts_as_ferret
...many comments, so this is a one-many relationship. If I want to add full text search to these models, I''m supposed to use acts_as_ferret in both of the classes. Now say I what to search for "rails" in all of these documents, ferret will simply return all the models it found, say article1, comment1 and comment2. The problem is that, there is a chance(and not that small) that comment1 or/and comment2 belong(s) to article1, in which case I want to show just article1 with all its comments. Of course I can go through the result set and write some logic to do this. But I think acts_as_f...
2007 Dec 20
3
ActiveRecords Eager Loading
Hi, I am doing an eager loading in ruby on rails using below statement ------------------------ Article.find(:all, :include => [:asset, :vote], :conditions=>"assets.parent_id is null", :order=>"stat_final_ranking desc", :limit=>20) --------------------------------------- the above statement resulted in this expensive query.
2008 May 22
9
building a many-to-many structure in javascript
hi, for some purpose, I need a "in-javascript database", maybe built with some Prototype $H function calls for creating "tables" but what about junction tables, I mean those which express many-to- many relations between two entity tables ? I though using concatenation of strings with a separator, for example "key1 key2" "1234-56" or "ABC \n 789"