# Re: Accounts and Users

**URL:** <https://www.ruby-forum.com/t/re-accounts-and-users/180886>\
**Category:** Rails\
**Created:** [December 31, 2009, 12:35am UTC](https://www.ruby-forum.com/t/re-accounts-and-users/180886 "2009-12-31T00:35:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![christoph\_j](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/76d3ee/32.png) [@christoph\_j](https://www.ruby-forum.com/u/christoph_j)\
**Post date:** [December 31, 2009, 12:35am UTC](https://www.ruby-forum.com/t/re-accounts-and-users/180886/1 "2009-12-31T00:35:38Z")

</div>

Sorry Steve but I don’t really understand this:

" I’m stuck at how I’m supposed to add the creation on the new account  
in my  
user \> create method."

What do you mean by this. Can you write more text? Some prose, or some  
scenarios to make it more clear to me?

As for now I would do something like this, but I’m really not sure  
whether I  
didn’t miss your point:

…  
def  
user=User.new(params[:user])  
account = Account.new  
#and then connect them together. Don’t know how your form looks like.  
Does  
your accounts have names than you could do Account.new(params[:account])  
or  
some other variantions  
end  
…

Thanks,  
Chris

–

You received this message because you are subscribed to the Google  
Groups “Ruby on Rails: Talk” group.  
To post to this group, send email to removed\_email\_address@domain.invalid.  
To unsubscribe from this group, send email to  
removed\_email\_address@domain.invalid.  
For more options, visit this group at  
[http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).
