Hai! One-to-one
use has_one in the base, and belongs_to in the associated model. class Parent < ActiveRecord::Base has_one :child end class Child < ActiveRecord::Base belongs_to :parent # foreign key - parent_id end Try this way: Bye:) Bdeveloper01 -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

