A more concise way to do this is with:
@user.create_shop(params[:shop])
See methods added by has_one in the Ruby on Rails guides.
A more concise way to do this is with:
@user.create_shop(params[:shop])
See methods added by has_one in the Ruby on Rails guides.