similar to: Assigning to the foreign key on a belongs_to association

Displaying 10 results from an estimated 10 matches similar to: "Assigning to the foreign key on a belongs_to association"

2007 Nov 12
1
Possible bug
Bug in associations or not? def has_many if options[:through] collection_reader_method(reflection, HasManyThroughAssociation) <--- FIRST CALL collection_accessor_methods(reflection, HasManyThroughAssociation, false) <-- CALLED AGAIN INSIDE THIS METHOD else .... def collection_accessor_methods(reflection, association_proxy_class, writer = true)
2015 Nov 17
4
[Bug 2496] New: sshd hangs when using AuthorizedKeysCommand
https://bugzilla.mindrot.org/show_bug.cgi?id=2496 Bug ID: 2496 Summary: sshd hangs when using AuthorizedKeysCommand Product: Portable OpenSSH Version: 7.1p1 Hardware: amd64 OS: FreeBSD Status: NEW Severity: normal Priority: P5 Component: sshd Assignee: unassigned-bugs at
2006 Jun 08
2
Nokia N80 and asterisk?
Recent posts indicate people have been having luck with the nokia E60/E7x phones and asterisk. I was wondering though if anyone had had any luck with the N80? I've got the N80 to register with asterisk, and that works just fine. However, it gives a 486 when I try to place SIP calls to it (either to the register username, or to the phone number). Oh, and I can't figure out how to make
2006 Sep 18
16
Dynamic fields and AAF
Hi, I have a model which has properties, these are your standard name/value pairs, but also have attributes that affect how I want to store them in ferret. I was using 0.9.5 with 0.2 of aaf, which seemed fine, I just copied and pasted (yes, I know, ick) the to_doc method and added code to iterate though the properties that that model had, and add relavent fields to the document. It seems
2007 May 10
0
Counterintuitive behavior in ActiveRecord I was implementing dirty checking for an application, and I found something that is a little counterintuitive. Let me start with a quick quiz: bob=User.find(1) alice=User.find(2) trip=Trip.new trip.driver=bob old_
I was implementing dirty checking for an application, and I found something that is a little counterintuitive. Let me start with a quick quiz: bob=User.find(1) alice=User.find(2) trip=Trip.new trip.driver=bob old_driver=trip.driver trip.driver=alice In this example, who is old_driver? If you guessed Alice, you''re right. Inside associations.rb, the mutator is defined as:
2006 May 31
3
Zap channels ringing too loudly
Hi All I've got an asterisk system, using a couple of Xorcom Astribanks to provide FXS ports. (I'm using the zaptel 1.2 branch, if that matters) I've noticed that the ringing volume is a lot louder than on our old phone system, and people are starting to complain it's too loud. (This is the noise the phone makes when it rings, not the noise in your handset when you ring
2010 Jun 11
5
Issues creating tables in mysql tests
Hello, I''m a beginner, so any hints are appreciated; I''m still trying to find my way around Rails code. For a bug I''ve found I need to create a table called "values" so I added this: create_table :values do |t| t.integer :value end among the other table creations in activerecord/test/cases/migration_test.rb. Is that ok? But then, when I run the tests
2007 May 25
49
Problem with ssh limit and scp stalling
Hi, I have a very simple server setup, using shorewall as my firewall. I have a line like this at the top of my rules file to allow ssh connections, but limited to 3 connection per minute with a burst rate of 3: SSH/ACCEPT net $FW - - - - 3/min:3 - Now when I have that in place, and from a remote machine run scp server:/some/file ., I find
2004 Dec 07
4
Linking asterisk to an existing small office PBX
Hi All I've done some reading on the wiki and read some of the mailing list archives, but can't see anything on this. I guess this means I'm either searching on the wrong thing, or have totally the wrong idea... Can anyone suggest if the following is possible? Currently, our office has a 24 analogue extension PBX, and 2 ISDN lines providing it with external connectivity. We have
2006 May 31
0
Bristuff PickUp and call transfers - can it be done?
Hi All I'm using the PickUp application from Bristuff to allow me to pick up channel groups across Zap and Sip. The only snag is that having picked up a call with it, you can't then transfer it on. Taking a dive into app_dial, it looks like when you specify the T option, it does: ast_set_flag(&(config.features_caller), AST_FEATURE_REDIRECT); Since there's nothing like that