search for: associated

Displaying 20 results from an estimated 17922 matches for "associated".

2009 Aug 06
0
Tasty Planet fails to run
Tasty Planet loads, and then complains that a module is missing - WINMM.DLL I checked - wine DOES have this dll in it's system32 folder. Wine produces this log: Code: wine: Unhandled page fault on write access to 0x00650180 at address 0x7ee58a73 (thread 0021), starting debugger... Unhandled exception: page fault on write access to 0x00650180 in 32-bit code (0x7ee58a73). Register dump:
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
2007 Jun 07
4
checking associated objects have been deleted
I 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 che...
2011 Jan 31
1
Openssh 5.7p1
...at/ -L/usr/local/ssl/lib -L/usr/local/lib -Wl,-blibpath:/usr/lib:/lib -lssh -lopenbsd-compat -lcrypto -lz ld: 0711-593 SEVERE ERROR: Symbol C_BSTAT (entry 2427) in object clientloop.o: The symbol refers to a csect with symbol number 0, which was not found. The new symbol cannot be associated with a csect and is being ignored. ld: 0711-593 SEVERE ERROR: Symbol C_BSTAT (entry 2430) in object clientloop.o: The symbol refers to a csect with symbol number 0, which was not found. The new symbol cannot be associated with a csect and is being ignored. ld: 0711-5...
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(''Torchbox'') => #<Company id: 1, name: "Torchbox", city_id: 1&gt...
2011 Feb 11
1
Compilation error: SEVERE ERROR: Symbol C_BSTAT (entry 2175) in object clientloop.o
...compat/ -L/usr/local/lib -Wl,-blibpath:/usr/lib:/lib: /usr/local/lib -lssh -lopenbsd-compat -lcrypto -lz ld: 0711-593 SEVERE ERROR: Symbol C_BSTAT (entry 2175) in object clientloop.o: The symbol refers to a csect with symbol number 0, which was not found. The new symbol cannot be associated with a csect and is being ignored. ld: 0711-593 SEVERE ERROR: Symbol C_BSTAT (entry 2178) in object clientloop.o: The symbol refers to a csect with symbol number 0, which was not found. The new symbol cannot be associated with a csect and is being ignored. ld: 0711-...
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
2006 May 08
2
Associating with different classes
Dear Railers, I am toying with a new project and have a schema design question. I have 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 dif...
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 the best approach ? t...
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 represented by a habtm relationship since (as far as I can tell - please tell me if I''m wrong) there''s no way to refer to the A object in my validation method for B. Has many :through looks like a b...
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
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? Does the schools table then get a course_id field or the other way around? I don''t think I should have course :belongs_to School, as there will only be one...
2006 Feb 16
2
simple association question
I have two models, Donor and Contribution, and have has_many and belongs_to set respectively. My question is regarding creation of associated objects. I''ll let the code speak: me = Donor.find(1) contribution = me.contributions.create do |e| e.amount = 164.00 e.category = Category.find(1) end I thought this was valid, but it doesn''t work properly - it appears to create a new Contribution, but does not associat...
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. assigns[:member].should_not_be_nil 2.
2011 Feb 28
3
Feature: ActiveResource - Adding associations through reflections
Hello everyone, I''m new in contributing and i saw in the contributing-guides, 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?
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:
2009 Jul 22
0
[LLVMdev] proposed new rule for getelementptr
...ning 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 > with with address range of the memory access, otherwise the behavior > is undefined. > > "associated with" is defined as follows: > > - A pointer value formed from a getelementptr instruction is > associated with the addresses associated with the first operand...
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 < ActiveRecord::Base; end A StoreType has
2008 Apr 11
2
Validating an ActiveRecord object and its has_many :through associations
...means processing for the most part the same validations for all associations. For instance, checking a students eca''s against the students classes (for timing conflicts) would be done twice, once from eca''s and again from classes. i would like to handle this through a validates_associated so that the Student is validated whenever an association is changed or added. However, I can''t see how this would work. To illustrate: >>ss = StudentsSchool.new(:school_id => 1, :student_id => 10) => #<StudentsSchooll>... >>ss.student => #<Student>......
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 Rgui.exe in the list of programs to use....