similar to: Tire: Problem with including associations while doing a multi-model search

Displaying 20 results from an estimated 6000 matches similar to: "Tire: Problem with including associations while doing a multi-model search"

2024 Mar 08
0
The urban cruiser 20-inch fat tire e-Bike
An HTML attachment was scrubbed... URL: <http://alioth-lists.debian.net/pipermail/pkg-xen-devel/attachments/20240308/03b0c45d/attachment.htm>
2006 May 26
0
how to prevent child.save() when doing parent.save() in associations?
When using has_one or has_many associations, how do I prevent a call to the parent''s save() method from calling the child''s save() method? I seem to be stuck in an infinite loop due to the way I have my associations setup :-( thanks, Tim
2014 Feb 05
0
Solr Search with one to many associations
I have a 2 entities which have many to many relation say teacher and slot. Each teacher has many classes he/she takes up and each class is a slot. I want to perform search on teacher by sunspot solr for all the teacher who takes classes for different days in specific time. Say model structures and relations as follows class Teacher < ActiveRecord::Base attr_accessible - name,
2011 Jan 14
0
[Rail3] How to construct full-text search for habtm associations
hi all, i''m new to this group and currently using Rails 3.0.3 and meta_where 0.9.10. i''m considering how to make a full-text searching feature to my project, and my models, for example, should be defined like below: class Group < ActiveRecord::Base has_and_belongs_to_many :users # :title (string) end class Comment < ActiveRecord::Base has_and_belongs_to_many :users
2017 Aug 28
3
Gluster documentation search
Hello folks, I spend some time today mucking about trying to figure out how to make our documentation search a better experience. The short answer is, search kind of works now. Long answer: mkdocs creates a client side file which is used for search. RTD overrides this by referring people to Elasticsearch. However, that doesn't clear out stale entries and we're plagued with a whole lot of
2006 Sep 20
2
Poission distribution
The expected number of bladder cancer over next 20 years a tire industry is 1.8. Poission distribution is assumed to hold and 6 reported deaths are caused by bladder cancer among the employees. Trying to find how unusual this event is. > ppois(q=6, lambda=1.8, lower.tail = TRUE, log.p = FALSE) [1] 0.9974306 not sure if ppois is the right one to use and the parameters... thx much
2020 Apr 21
2
Status of Windows Search Protocol support in Samba?
(resending, apologies if you got it already but I got a rejection message) Hi All On 21/04/2020 01:48, Jeremy Allison via samba wrote: > On Sun, Apr 19, 2020 at 10:49:55AM +0100, Mark Rousell via samba wrote: >> On 19/04/2020 10:25, Ralph Boehme via samba wrote: >>> Am 4/17/20 um 5:55 PM schrieb Mark Rousell via samba: >>>> I've been trying to Google this but
2020 Apr 21
2
Status of Windows Search Protocol support in Samba?
On 21/04/2020 13:14, Mark Rousell via samba wrote: > On 21/04/2020 12:38, Noel Power via samba wrote: >> (resending, apologies if you got it already but I got a rejection message) > This one got through on the Samba list. > > Thank you for your helpful reply. > >> yep, WSP server that translates protocol to tracker sparql queries is >> working (with caveats [1])
2020 Apr 21
0
Status of Windows Search Protocol support in Samba?
On 21/04/2020 12:38, Noel Power via samba wrote: > (resending, apologies if you got it already but I got a rejection message) This one got through on the Samba list. Thank you for your helpful reply. > yep, WSP server that translates protocol to tracker sparql queries is > working (with caveats [1]) > > The code would need some effort to get it in shape, as you might imagine >
2007 Jun 18
0
Problem with belongs_to associations validating associated class: bug in rails in development mode?
Hi all, I''m using rails version 1.2.3. I have the following association in my View class belongs_to :viewer, :class_name => ''User'', :foreign_key => :viewer_id And of course i have a User model class defined to. The problem was that when i tried to use this association it would only work once. At the second try, i would get the following strange error:
2006 Jul 22
2
How to SELECT from multiple talbes with AR#find and associations?
So I want to SELECT from multiple tables, so as to be able to do "SELECT FROM foo, bar WHERE foo.id=bar.id AND bar.baz=23". How do I do it with AR#find? Also, I need this for associations. has_many et. al. have :finder_sql, which is nice, but feels like a Pyrrhic: it''s basically doing the association in pure SQL, defeating the purpose of AR. -- -Alder
2006 Sep 20
2
Lost associations
I have a plugin which does something like this for different associations: belongs_to_klass.send(:belongs_to, belongs_to_name) This works fine for the first page request in mongrel/webrick, but the associations are lost on/by the next page request. Any ideas? Thanks :o) -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this
2007 Jul 31
1
Lost file associations, too - urgent
I just returned from a week's vacation and brought my CentOS 5.0 system back up, updated it, and somehow it has lost all the .doc file associations. These used to be associated with the OpenOffice writer, but that's now gone. ACtually, all the "open with" associations are gone (rtf's now think they should be opened by the text editor!). I'm not sure exactly what the
2006 May 17
2
ActiveRecord::Associations ER diagram/macros
Hello, I found an interesting ER diagram on the "Module: ActiveRecord::Associations::ClassMethods" page of the Rails Framework Documentation : http://ar.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html At the beginning we can read ? Associations are a set of macro-like class methods for tying objects together through foreign keys. They express relationships like
2006 Mar 31
2
Eager loading of polymorphic associations
Polymorphic associations work great until I try to do some eager loading through :include. In my example, the interface name is ":imagehaver". Here''s my little eagerly loading find line: Image.find(params[:id], :include => :imagehaver) All it gives me is an ActiveRecord::EagerLoadPolymorphicError with no further explanation. I haven''t been able to dig up anything
2006 Feb 03
1
nested has_many associations
My question is whether the rails helper methods for handling associations can be nested (see examples below). I suspect not as currently I''m getting "unknown method" if I try and use two associations in one call. The essence of the code is class User << ActiveRecord::Base has_many :items class Items << ActiveRecord::Base has_many :reservations belongs_to
2006 Jan 12
3
Introspecting Active Record Associations
Hi, I''m looking into write scaffold generators that will, amoung other things, scaffold active record associations (eg. generate select boxes for belongs_to where you can choose a parent object) for quicker prototyping. But... My question is: Is there anyway of finding out what associations exist from examining the lodel classes themselves or indeed any other way of finding out this
2007 Apr 17
1
Lost file associations, only application/octet-stream
Hi, After updating from CentOS 4.92 to 5 through manual hacks and 'yum update' (see http://lists.centos.org/pipermail/centos/2007-April/079023.html), I've lost all gnome file associations. Now every file is identified as application/octet-stream or text/plain or x-directory/normal (for directories). I've checked everything with 'rpm -Va' but couldn't find problem
2006 Aug 07
1
ActionWebService: associations unavailable in SOAP response
I have create a web service to expose data from my application and am wondering why the associations are not showing up as values in my WSDL or SOAP response. In active record I have enabled eager loading so that the object set as the return type for the service call has all the associated data prior to the response. However, the associations are not showing up. Anyone have any ideas? I can
2006 Aug 16
3
Reflecting on associations
Is there an easy way to programatically work out the associations on a model? If not, is there a positive reason it was omitted, or is it just something that hasn''t been implemented yet? Thanks Gareth