similar to: strange behavior with has_many and size

Displaying 20 results from an estimated 10000 matches similar to: "strange behavior with has_many and size"

2006 May 08
8
enforcing special behavior of child rows in HABTM
Hi, I have a scenario where a doctor can have one or more specialties. For each doctor, one and only one of her specialties can be designated as primary. So I have tables called doctors, specialties, and doctors_specialties, the last of which has a boolean is_primary column. The doctor model class specifies that: has_and_belongs_to_many :specialties I want to enforce, at the lowest possible
2005 Dec 22
2
nonstandard postgresql sequence names
I''m working with a legacy postgresql database where the names of tables, columns, etc., do not usually follow Rails conventions. I''ve been able to work around it for the most part, but I ran into this: I have the following test: require File.dirname(__FILE__) + ''/../test_helper'' class SponsorTest < Test::Unit::TestCase self.use_transactional_fixtures =
2006 Jul 18
13
RANDOM
I am pretty much new at this ROR game and had what I think to be a simple question. I have a set of Sponsors that I would like to be able to select one at random and display in the my html. I have already set up the DB, scaffolded, set index controller and all is working smoothly. I know that I can display them all by doing <% for sponsor in @sponsors %> <%= sponsor.name %>
2020 Nov 03
2
Looking for sponsors for future Icecast development
Good evening, in order to speed up Icecast development we[0] are currently looking for sponsors allowing us to provide more workforce to the Icecast project. We provide commercial Icecast support. Part of this is sponsored work with clients wanting to help the community by sponsorship. This helps our clients by having their problem fixed with priority and the community benefits also. Today
2006 Mar 20
2
AHHHhhhhh... has_and_belongs_to_many, that is going on?
I don''t have a class by the name of "ReviewersScoreCard", yet my many to many configuration looks as follows. And, these errors while running some simple test with ./script/console is giving me a headache: ./script/console Loading development environment. >> r = Reviewer.find_first => #<Reviewer:0x19d0a48 @attributes={"id"=>"1",
2015 Oct 20
2
CentOS 6 update issues
On Tue, Oct 20, 2015 at 12:29:06PM -0500, Johnny Hughes wrote: > Those 3 addresses are good, the 204.15.73.243 is incorrect. 204.15.73.243 reverse resolves to centos.at.multacom.com. multacom is a CentOS Sponsor according to: https://www.centos.org/sponsors/ An outdated config somewhere? -- Jonathan Billings <billings at negate.org>
2005 Dec 17
10
need some tips for applying patches
I am working with a legacy database that does not always follow the conventions for table names, primary key and foreign key column names, and join table names. This is no problem in my application code because Rails allows me to override the defaults. However it is making unit testing next to impossible because fixtures will still try and insert data into the wrong tables. Changing the
2019 Sep 16
0
[centos/centos.org] branch master updated: Renamed sponsor and updated logo
This is an automated email from the git hooks/post-receive script. unknown user pushed a commit to branch master in repository centos/centos.org. The following commit(s) were added to refs/heads/master by this push: new 6511a57 Renamed sponsor and updated logo 6511a57 is described below commit 6511a57d67329ac9dc617f3b0353aed767bd6246 Author: Fabian Arrotin <arrfab at centos.org>
2019 Sep 16
0
[centos/centos.org] branch master updated: Renamed netelligent to eStruxture sponsor and adapted logo
This is an automated email from the git hooks/post-receive script. unknown user pushed a commit to branch master in repository centos/centos.org. The following commit(s) were added to refs/heads/master by this push: new cb49dfd Renamed netelligent to eStruxture sponsor and adapted logo cb49dfd is described below commit cb49dfdf32fe24213bf05d96fef744a240804d13 Author: Fabian Arrotin
2006 Feb 15
5
dispatch.cgi error affecting specific browsers
I have a rails app that is accessed through Apache 2 (just using cgi now; will add fastcgi later when everything is working). The app works fine with some os/browser combos at my work site: windows/IE Mac/safari Mac/firefox Linux/firefox But it fails on windows/firefox and my colleague''s (at a different site) mac/safari (we are running the same os version and version of safari) The
2020 Jan 22
0
[centos/centos.org] branch master updated: updated sponsor logo , per request
This is an automated email from the git hooks/post-receive script. arrfab pushed a commit to branch master in repository centos/centos.org. The following commit(s) were added to refs/heads/master by this push: new 02f1465 updated sponsor logo , per request 02f1465 is described below commit 02f1465c621dd13ea072a1a9f328af1bf69da287 Author: Fabian Arrotin <arrfab at centos.org>
2004 Apr 15
3
* Announcement * Astricon 2004 - call for speakers!
We're proud to announce Astricon 2004 - the first Asterisk user's and developer's conference! * Where? Atlanta, USA * When? September 22-24, 2004 The conference is arranged in partnership with Digium.inc and the keynote speaker is Mark Spencer, lead developer of Asterisk - the Open Source PBX. Among the speakers already signed on are Ed Guy of Pulver.com, John Todd, Jeremy McNamara
2019 Dec 03
0
[centos/centos.org] branch master updated: Added AWS as sponsor
This is an automated email from the git hooks/post-receive script. arrfab pushed a commit to branch master in repository centos/centos.org. The following commit(s) were added to refs/heads/master by this push: new 973d90a Added AWS as sponsor 973d90a is described below commit 973d90a1c09ad0ef6efdf200cc0e102f75442448 Author: Fabian Arrotin <arrfab at centos.org> AuthorDate: Tue Dec 3
2020 Mar 20
0
[centos/centos.org] branch master updated: Added vsys.host as sponsor
This is an automated email from the git hooks/post-receive script. arrfab pushed a commit to branch master in repository centos/centos.org. The following commit(s) were added to refs/heads/master by this push: new 0d5e092 Added vsys.host as sponsor 0d5e092 is described below commit 0d5e092cd92d0fec1d3647d5c58c0a83d6c60b55 Author: Fabian Arrotin <arrfab at centos.org> AuthorDate: Fri
2007 Sep 03
7
relationing has_many, belongs_to
Hello, i want to know if i am relationing fine, because i am having problems,i have 2 models, one for members and other to relate some members to this: class Member < ActiveRecord::Base has_many :matrix, :foreign_key=>:parent end class Matrix < ActiveRecord::Base set_table_name :matrix set_primary_key :userid belongs_to :member, :foreign_key=>:userid acts_as_tree
2012 Nov 19
2
Is it possible to be sponsored by R?
Hi the list, I am a member of the organizing comity of the French Statistics Association (SFdS)'s conference. We are looking for sponsors. Some software (SAS, RITME, ...) are represented. Do you know if there is any possibility to be sponsored by R (or by an association close to R)? Do you think I can ask to the R fondation? Sincerely Christophe -- Christophe Genolini MaƮtre de
2019 Jul 12
0
[centos/centos.org] branch master updated: Removed lost sponsor vi.net
This is an automated email from the git hooks/post-receive script. unknown user pushed a commit to branch master in repository centos/centos.org. The following commit(s) were added to refs/heads/master by this push: new a7bdc7a Removed lost sponsor vi.net a7bdc7a is described below commit a7bdc7a0d4b22d841982ceb8ad80c159ff464346 Author: Fabian Arrotin <arrfab at centos.org>
2020 Mar 18
0
[centos/centos.org] branch master updated: Removed sponsor from list
This is an automated email from the git hooks/post-receive script. arrfab pushed a commit to branch master in repository centos/centos.org. The following commit(s) were added to refs/heads/master by this push: new 567cac3 Removed sponsor from list 567cac3 is described below commit 567cac31956a9e97af492d089db91d0716e99614 Author: Fabian Arrotin <arrfab at centos.org> AuthorDate: Wed
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
2019 Dec 13
0
[centos/centos.org] branch master updated: Updated Steadfast's sponsor logo, per request
This is an automated email from the git hooks/post-receive script. arrfab pushed a commit to branch master in repository centos/centos.org. The following commit(s) were added to refs/heads/master by this push: new 757f25c Updated Steadfast's sponsor logo, per request 757f25c is described below commit 757f25caec7c810c4debf186f4bb9a1bcb530d3b Author: Fabian Arrotin <arrfab at