search for: association

Displaying 20 results from an estimated 17917 matches for "association".

2009 Aug 06
0
Tasty Planet fails to run
...in ntdll (0x0064eb78) 6 0x7bc73c8b in ntdll (+0x63c8b) (0x0064f3b8) 7 0xb7e724ff start_thread+0xbf(arg=0x64fb90) [/build/buildd/glibc-2.9/nptl/pthread_create.c:297] in libpthread.so.0 (0x0064f4b8) fixme:shell:DllGetClassObject failed for CLSID={a07034fd-6caa-4954-ac3f-97a27216f98a} (Query file associations) err:ole:CoCreateInstance apartment not initialised err:shell:SHCoCreateInstance failed (0x800401f0) to create CLSID:{a07034fd-6caa-4954-ac3f-97a27216f98a} (Query file associations) IID:{c46ca590-3c3f-11d2-bee6-0000f805ca57} (unknown) err:shell:SHCoCreateInstance class not found in registry fixme:...
2007 Mar 29
21
a better "should have valid associations"
This is pretty much the same as last time around, if you recall. Thanks to Wilson for converting to the new form. I''ve added a few lines. Basically, it iterates over your model associations and does two things. - First, just try to call the association. Usually fixes speeling erors or other such silliness. - Second, try to find a record with an :include on the association. This actually hits the DB and will tell you if you have lingering associations on deleted models. Page.find(:...
2007 Jun 07
4
checking associated objects have been deleted
...have the following model: class Book < ActiveRecord::Base has_many :taggings, :dependent => :delete_all has_many :tags, :through => :taggings end is it possible to check that associated taggings are being destroyed using mocks? I don''t want to test that rails is deleting the associations, I want to test that I have specified the association as a dependent one. the only way I can think of is to use fixtures (or create real associations in the before callback) and then check that they have been deleted using Taggings.count(). Can it be done using mocks instead? describe Book do...
2011 Jan 31
1
Openssh 5.7p1
Hello everyone... This is my FIRST time... I am using GCC 4.3.5 on AIX 5.3... I compiled with openssh but got the error messages. Here is: gcc -o ssh ssh.o readconf.o clientloop.o sshtty.o sshconnect.o sshconnect1.o sshconnect2.o mux.o roaming_common.o roaming_client.o -L. -Lopenbsd-compat/ -L/usr/local/ssl/lib -L/usr/local/lib -Wl,-blibpath:/usr/lib:/lib -lssh -lopenbsd-compat -lcrypto -lz
2008 May 07
1
Assigning to the foreign key on a belongs_to association
I''ve encountered what seems like an odd omission in the behaviour of belongs_to associations: if you assign to the foreign key attribute, it doesn''t update the associated object (or mark a previously loaded one as stale) until you explicitly save or reload it. Let''s say we have a Company model, which belongs_to :city : >> torchbox = Company.find_by_name(''...
2011 Feb 11
1
Compilation error: SEVERE ERROR: Symbol C_BSTAT (entry 2175) in object clientloop.o
Previous version compiled successfully was 5.5p1. Now compiling 5.8p1 on the same machine "AIX 5.3 TL12 SP2" via GNU make with gcc 4.2.0 - got an error, can someone help with this? gcc -o ssh ssh.o readconf.o clientloop.o sshtty.o sshconnect.o sshconnect1.o sshconnect2.o mux.o roaming_common.o roaming_client.o -L. -Lopenbsd-compat/ -L/usr/local/lib -Wl,-blibpath:/usr/lib:/lib:
2006 Jan 08
8
I need untyped associations
I am in the process of trying to migrate to ROR from a home grown ORM, but one stumbling block is ActiveRecord''s typed associations and object ID assignment scheme. In the home grown system, I have a master table which *all* objects are packed into and a master associative table which holds *all* associations. This allows each object, regardless of type, to have a unique ID and thus it is easy to allow any object to associa...
2006 May 08
2
Associating with different classes
...a tree-like node structure. Each of the nodes will be associated with a single object. This associated object can be of a variety of types. I represent the tree through a Node class which acts_as_tree. Now imagine three other classes--Animals, Fruits and Vegetables. Each node will have an association with one object of ONE type. The object types are different enough to make STI impractical. I am thinking of the following: adding a table called associations and holding three columns--node_id, associated_type, associated_id. Thus: class Node < AR::B has_one :association end class A...
2006 May 20
10
HOW TO create a new record and its associated objects within the SAME PAGE
hi, can''t find any good tutorial or advice to deal with the creation of a new record and it''s associated objects within the same page. do i have to use ajax just to add custom form fields that will be handled by the controller for associated objects creation.? do i have to use ajax to add associated objects to the unsaved but allready in session parent object? what''s
2008 Aug 25
2
Validating an association
I have two models, A and B, related to one another by a many to many association and I want to validate an object of model B as it''s being added to the association based on both its own attributes and attributes of the particular object of model A that it''s being associated with. I''ve realized that I can''t do this if the association is repre...
2006 Feb 26
5
Help On Associations Extension.
Hi to all, I''m needing some help here ... I want to do an extension on a has_and_belongs_to_many to build a custom add method to the association. i have a table locations that has a many-to-many association with a tags tabel using a locations_tags table. i want to add a method to the Location has_and_belongs_to_many association so that i can do something like this on the location model: myLocation.tags.add_by_names ''tag1 tag2...
2006 Apr 20
4
Question about Associations
Hi all. Got a stupid-simple question about associations. I have two models - school and course. There are a fixed number of schools (set up in the migration). Each course is assigned a school and a school will be associated with multiple courses... How do I set up the associations? Do (can) I have School :has_one :course and Course :has_many :schools...
2006 Feb 16
2
simple association question
...e contribution has no values for the amount or category. Finally, I tried this (using the new method): contribution = me.contributions.new do |e| e.donor = me e.amount = 164.00 e.category = Category.find(1) e.save end This *does* work, but I thought I could skip having to set the association manually (shouldn''t the donor be inferred through the chain me.contributions?) Any help on this would be greatly appreciated - I''d just like to know if I am assuming too much about the associations. -- Posted via http://www.ruby-forum.com/.
2006 Dec 13
3
Testing has_many :through
I''m working with a has_many :through association, where a Member has_many Projects through ProjectViewers. The problem I''m running into is that Rails doesn''t load the association so line (3) fails until I explicitly access a member of the collection (in this case, I iterated it). Is there a better way? Thanks, Steve 1...
2011 Feb 28
3
Feature: ActiveResource - Adding associations through reflections
..., that i have to write an email at this list. I hope, that''s the right place for this. If it''s not, i''M really sorry.. ;) Could someone please give me feedback about this lighthouse-ticket? https://rails.lighthouseapp.com/projects/8994/tickets/6473-activeresource-adding-associations-through-reflections It''s about adding association-definitions in ActiveResource. Thank you for reading this Mail. Greetings Markus Schwed -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send em...
2008 Feb 19
1
[CruiseControl] RubyOnRails build 8896 failed
The build failed. CHANGES ------- Revision 8896 committed by bitsweat on 2008-02-19 02:56:05 Don''t assume all records from nested include are of same class. Closes #11154 [acechase] M /trunk/activerecord/lib/active_record/association_preload.rb A /trunk/activerecord/test/cases/associations/eager_load_nested_include_test.rb TEST FAILURES AND ERRORS ----------------------- Name: test_include_query(EagerLoadPolyAssocsTest) Type: Error Message: ActiveRecord::StatementInvalid: PGError: ERROR: syntax error at or near "Engi...
2009 Jul 22
0
[LLVMdev] proposed new rule for getelementptr
On 2009-07-22 21:30, Dan Gohman wrote: > Hello, > > I'm working on refining the definition of getelementptr (GEP) to > clarify its semantics and to allow front-ends to provide additional > information to optimization passes. > > To help support this, I'd like to propose the following rule: > > Any memory access must be done though a pointer value associated >
2010 Aug 02
7
Complex associations
I am working on a project that has some complex table associations, and I am having a hard time declaring this association in a Model, and fear it can''t be done. Here is an example of my issue... class StoreType < ActiveRecord::Base; end class Store < ActiveRecord::Base; end class Department < ActiveRecord::Base; end class Product < ActiveR...
2008 Apr 11
2
Validating an ActiveRecord object and its has_many :through associations
Considering an object with several has_many :through => associations, what is the ''best'' way to handle validations? As an example: class Student < ActiveRecord::Base # some attrbutes like # :name # :grade # relationships has_many :students_assignment, :dependent => :destroy has_many :assignments, :through => :students_ass...
2004 Dec 28
3
lost association for .RData files
Somehow I have lost the correct file association for .RData files. They are now associated with a text file editor. When I right click on any .RData file and try to change the association, R is not listed as a choice of program. I browse to c:\Program Files\R\rw2001\bin\Rgui.exe and select that file to open .RData, but Windows does not then place...