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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.


Reply via email to