search for: primary_users

Displaying 3 results from an estimated 3 matches for "primary_users".

Did you mean: primary_user
2007 Jun 13
6
ActiveRecord query using association
Hello all, I apologize if the answer to this question is going to be rudimentary, but I am thus far stymied by the information I have found on the web. This seems like it should be simple, but I haven''t really found an example of how to do this yet. I have a model called Account which has a belongs_to reference to another model, User, as below: class Account < ActiveRecord::Base
2006 Aug 17
2
validates_associated bug?
i seem to be experiencing a bug where rails tells me that my organization object''s associated credit card is invalid (activerecord validation-wise invalid), when i know it to be valid. this happens only if i tell the organization to validate_associated :credit_card. i know the associated credit card is valid, because a) that credit_card object itself throws no validation errors, and b)
2006 Aug 12
0
issues with relationships and multiple objects on one form
...s. The models are defined as: class User < ActiveRecord::Base belongs_to :primary_organization, :class_name => ''Organization'', :foreign_key => ''primary_organization_id'' class Organization < ActiveRecord::Base has_many :primary_users, :class_name => ''User'', :foreign_key => ''primary_organization_id'' A select displays all Organizations on the User form, allowing the relationship to be defined using the code: <p><label for="user_primary_organization&q...