Ok so I built this application a while which was a rails 2.3.5 application and i used this syntax
@user = User.new
@user.build_company
and I totally forgot what this meant and how to convert to rails 3 syntax
class User < ActiveRecord::Base
has_one :company
class Company < ActiveRecord::Base
belongs_to :user
I vaguely remember that rails will use build_ and do something but i cant remember and I cant seem to find the documentation anywhere