I\'m getting a AssociationTypeMismatch Error and I\'m not sure where I\'m making a mistake. I\'m pretty new to Rails so I\'m guessing I\'m making some silly mistake. I\'ve check
In your User model, try to add :preference_attributes to your attr_accessible line.
class User < ActiveRecord::Base
attr_accessible :email, :full_name, :password, :password_confirmation, :preference_attributes
.. # rest of your code goes here
end