Forum: Ruby on Rails UserEngine + User Profiles

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
25c22435e111770092c8818887c8a469?d=identicon&s=25 Ray Slakinski (rays)
on 2006-04-28 22:21
[Cross Posted in Rails Engines]

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?
This topic is locked and can not be replied to.