in your controller you can then access the data fo the 2 use fields
with params[:user] (e.g. params[:user][:name]) and the userinfo with
params[:userinfo] in the same way. you create an new user, and an
associated userinfo item:
#controller
....
#Create the user (saves automatically)
@user = User.create params[:user]
#Create the associated Userinfo item (saves automatically)
@user.create_userinfo params[:userinfo]