All your association setup is correct but I think you've slightly misunderstood the way associations in rails works. Since you have the associations user has_one profile and profile belongs_to user
You can call @user.profile which will return you the profile object associated with the user. To access the country attribute in profile, you have to actually call, @user.profile.country. So instead of calling