similar to: HABTM Association with STI model

Displaying 20 results from an estimated 1200 matches similar to: "HABTM Association with STI model"

2012 Nov 15
3
[LLVMdev] Code Ownership - Buildbot
On Thu, Nov 15, 2012 at 2:10 PM, Sean Silva <silvas at purdue.edu> wrote: > kinda random, but do we have a centralized list of all of the > buildbots? I see a lot of different URL's in IRC, but no list so I can > check "all of the waterfalls". I'm not talking about the specific bots > (e.g. llvm-x86_64-ubuntu) but the "fleets"
2012 Nov 15
3
[LLVMdev] Code Ownership - Buildbot
I'd like to take code ownership of the LLVM Buildbot code. Thanks Galina
2006 Apr 23
0
Severe STI, HABTM with Attributes and 1.1
All, I had been working on a project that was using STI to a very high degree. It also was using a HABTM table that had a couple extra attributes. It seems that with 1.1 push_with_attributes is deprecated and I am having a bit of trouble moving things to using has_many :through The original schema I had worked like this : create_table "nodes" do |t| t.column "title",
2006 Mar 08
0
combining STI + polymorphism + rich self HABTM : how to ?
Hi all, I need to model simple typed polymorphic relations: ''John'' [''works_for''] ''Bill'' ''John'' [''speaks_for''] ''Microsoft'' ''Microsoft'' [''hold_shares_of''] ''Apple'' I''m having a hard time combining : - S.T.I.
2012 Nov 15
0
[LLVMdev] Code Ownership - Buildbot
On 15.11.2012, at 23:16, David Blaikie <dblaikie at gmail.com> wrote: > On Thu, Nov 15, 2012 at 2:10 PM, Sean Silva <silvas at purdue.edu> wrote: >> kinda random, but do we have a centralized list of all of the >> buildbots? I see a lot of different URL's in IRC, but no list so I can >> check "all of the waterfalls". I'm not talking about the
2012 Nov 15
0
[LLVMdev] Code Ownership - Buildbot
kinda random, but do we have a centralized list of all of the buildbots? I see a lot of different URL's in IRC, but no list so I can check "all of the waterfalls". I'm not talking about the specific bots (e.g. llvm-x86_64-ubuntu) but the "fleets" (e.g.http://lab.llvm.org). Could you maybe add a little bulleted list (or link to a list) to docs/HowToAddABuilder.rst?
2006 May 22
3
STI, HABTM & counter_cache
Hello world... I have an interesting issue that the online docs aren''t helping me with. In my app I have 4 models Item < ActiveRecord Deal < Item Product < Item Category < ActiveRecord Item has_and_belongs_to_many :categories... On each category record I''d like to maintain a product_count and deal_count to increase performance. This doesn''t appear
2006 May 05
4
STI and HABTM
Hey gang, How does STI work with HABTM? For instance...let''s say I have the following models ----- Category < ActiveRecord::Base Item < ActiveRecord::Base Product < Item Deal < Item ----- Each product or deal can have categories. Would I then setup Item with has_and_belongs_to_many :categories, then create a table categories_items ??? Is there a better way to do it?
2006 Jun 30
2
how to HABTM with STI ??
Hello all This is my first post so excuse the basic question. (and any repeats I just got an email saying this post was too big so I have re-submitted a smaller version) I was following the thread on http://lists.rubyonrails.org/pipermail/rails/2006-May/038988.html regarding the STI on HABTM for RoR. I have a very similar problem and was hoping for some help. I have the
2012 Nov 16
2
[LLVMdev] Code Ownership - Buildbot
Here is a trivial reason why I have not propagated http://bb.pgr.jp/ . Sometimes (but I suppose rarely) he reports false alarm in a few points. He'd send blames to the llvm-testresults if his master (aka I) knew he were mature. I don't also want him promoted and called as one of official buildbots. He is my pet, though, I expect he should be helpful to the developers. ...Takumi
2011 Apr 15
1
Nested STI?
Hi, I''m having some issues when trying to nest multiple STIs. Is possible? i.e.: class Author :has_many => :posts end class Reviewer < Author end class Administrator < Reviewer class Post belongs_to :author end admin = Administrator.create Post.create(:author => admin) -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2010 May 07
1
Can't eagerly load a polymorphic association defined in an STI parent class?
If I define an association (in my case a polymorphic one) in an STI parent class, and try to eagerly load it in a subclass, I get the following error: ActiveRecord::ConfigurationError: Association name ''myassoc'' was not found; perhaps you misspelled it? If I redefine the same association again in the STI subclass, it works. Is this a bug or what? -- You received this message
2011 Jul 08
0
Looking for Help/Advice on StackOverflow Question - Polymorphic Association with STI
I am having trouble with an many to many polymorphic association with STI involved. The problem is described clearly in the following StackOverflow question, so I will leave this thread short: http://stackoverflow.com/questions/6582074/activerecord-has-many-through-polymorphic-associations-with-sti I am posting here hoping to get advice/direction/a solution for this, as I''ve so far been
2006 Jul 26
0
Using validators for appending to a HABTM association
class User < ActiveRecord::Base has_and_belongs_to_many :projects end class Project < ActiveRecord::Base has_and_belongs_to_many :users end class ProjectController < ApplicationController def add_user @project = Project.find(params[:project_id]) @user = User.find(params[:id]) @project.users << @user unless @project.users.include?(@user) # I''d
2005 Jun 25
2
observing a habtm association
Is there some way to observe when an association is added in a habtm relationship? I know I could turn the relationship into a model, but I don''t want to give up using :include in my finds... joshua
2009 May 31
0
[HELP] pagination w habtm association and authorization plugin...
I am using the proven authorization plugin to defines roles for users, so I can get all groups where a user is ''member'' @groups = current_user.group_memberships I have an habtm association between groups and events class Group < ActiveRecord::Base has_and_belongs_to_many :events .. class Event < ActiveRecord::Base has_and_belongs_to_many :groups I am trying to list
2011 Apr 16
0
adding HABTM association while creating a record
Hello Experts, I have a HABTM association as followed: class Account < ActiveRecord::Base has_and_belongs_to_many :user end class User < ActiveRecord::Base has_and_belongs_to_many :type has_and_belongs_to_many :account end class Type < ActiveRecord::Base has_and_belongs_to_many :user end I have the following query; I Have a parent user who is creating another user under its
2007 Sep 06
4
HABTM association with own class?
If I have a class, Asset, which has and belongs to many associated Asset objects, how do I do this? has_and_belongs_to_many :associated_assets, :class => "Asset", :foreign_key => ?????, :association_foreign_key => ????? Right now, my table has a :first_asset_id and a :second_asset_id, but I don''t see how the objects themselves are supposed to distinguish one from the
2006 Apr 05
5
Updating attributes in HABTM association
Hi, I am trying to find a way tp update attributes in a habtm association. I am trying to use the code from ticket #2462, but as my association_class_primary_key_name seems to be empty the generated sql code is corrupt. I hope thats not a problem of my model that this variable is empty. What would you recommend to update those attributes (rails 1.1) THANKS!!! -- Posted via
2024 Oct 21
7
Security of ssh across a LAN, public key versus password
I have a small LAN at home with nine or ten systems on it running various varieties of Linux. I 'do things' on the LAN either from my dekstop machine or from my laptop, both run Xubuntu 24.04 at the moment. There's a couple of headless systems on the LAN where login security is important to me and I've been thinking about the relative merits of password and public-key