Skip to content

Instantly share code, notes, and snippets.

@svisamsetty
Created November 20, 2013 13:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save svisamsetty/7562739 to your computer and use it in GitHub Desktop.
Save svisamsetty/7562739 to your computer and use it in GitHub Desktop.
@user = User.new
@user.user_name = params[:user_name]
@user.first_name = params[:first_name]
@user.last_name = params[:last_name]
@user.email = params[:email]
@user.password = params[:password]
@user.password_confirmation = params[:password_confirmation]
@client.user = @user
if @client.save
# this save will also create and save the user record.
else
end
@bhaskarkotu
Copy link

In our context either client details or his contact details may be updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment