search for: tests_user

Displaying 1 result from an estimated 1 matches for "tests_user".

Did you mean: test_user
2011 Sep 16
4
belongs_to not working as
Hi, I have a model tests_user and score which are associated with each other by has_one and belongs_to association. class TestsUser < ActiveRecord::Base has_one :score, :foreign_key => :reg_no end class TestsUser < ActiveRecord::Base belongs_to :tests_user, :foreign_key => :reg_no end where reg_no is a u...