Since you did not enter any code, say that this is how you create the user
user = User.create(:name => "bob")
You can then associate the user with the account by specifying user_id
account = Account.create(:user_id =>user.id, :status => "not activated")
Now let's say we want to change the status of the account. We can call the updated method in rails http://api.rubyonrails.org/classes/ActiveRecord/Base.html#M002270 as follows:
Account.update( account.id, :status => "activated")
I can be more helpful with more information.
source share