In my application, I have two forms for creating a user.  

Form 1: I input the following details from the user in form 1.

* Full Name
* Email Address
* Gender
* Date of Birth
* Profile Image

AND in the Form 2, I ask him to fill in his

* desired @username, and
* password

Problem is that I have associated my models in the following fashion, that 

```
User has_one UserProfile  
UserProfile belongs_to User  

```

& 

> 
> Email Address, username and password are attributes of User model.  
> 
>  The rest of the attributes belong to UserProfile model.
> 
> 
> 

But in my forms, I am using Email Address in Form1 and the other attributes in Form2. 

Should I make the forms as Rails forms or plain HTML forms?  

How should I do this???

**UPDATE:-** 
I don't want to create a UserProfile Object without creating a User object, so I need some way to store the form 1 values in javascript, and then when Form 2 gets submitted, then pass them both to Rails controller method.