I'm taking a new approach to how I view user data, I think in the end it will be faster for the system anyways... What I'm doing is using LoginEngine/UserEngine combo on my site for authorization, and I want each user to have a profile that they edit and maintain. Each user would have 1 profile.
My question is getting my profile and my user account to have a relationship. I have in my Profile model: class Profile < ActiveRecord::Base has_one :user end In my user.rb - I'm editing the user_engines/app/,odel/user.rb directly for now: class User < ActiveRecord::Base include LoginEngine::AuthenticatedUser include UserEngine::AuthorizedUser belongs_to :profile In my profiles database I have a user_id field that is of type int(11). What I was expecting to happen (and this is obviously me being a newbie) is that when I enter in a new profile the user_id field would automagically be filled in by the relationship. Can anyone give me a hand getting this going? -- Posted via http://www.ruby-forum.com/. _______________________________________________ engine-users mailing list [email protected] http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org
