Displaying 1 result from an estimated 1 matches for "railier".
Did you mean:
railer
2006 Aug 08
4
Creating a child simultaneously with parent via form
Hi there
I''ve got a user model and an address model; a user has_many addresses.
A user object can be created via an html form which also allows for an
initial address to be created.
I''ve got a controller method working to save both objects via the
form, but I suspect I can achieve this in a more rails-esque manner.
Here is my controller method:
def signup
@user =