I have model in my rails App called "Request". It consist around of the 12 fields. It has relations with user model like User has\_many: request, Request belongs\_to: User. For users i use Devise. My problem is next. I want that user from home page of my app has a possibility to start creating new request. It should be multi-step form like 3 steps with 4 inputs in each step. After filling all step i need to prompt user to sign up. I don't want that new row in Request table would be created until user would do Sign up. So the process should looks like user goes throw each step, we store all input data by someway, after user do sign-up we create new user in Users table and new request in Requests table. I don't want to store request until user would be registered because in this case i would have in my db a lot of requests that don't belong to any user. So how could i achieve my aim?
UPDATE:
So with users suggests and with searching i get some progress. So now i have form on one page (all 12 fields), after click on submit it goes to "create" action in RequestController where i do such code:

```
if current_user.nil?
  session[:request] = params
 # Redirect the user to register/login
  redirect_to new_user_registration_path 

```

So i get all params, store them in session[:request] and redirect to Sign-up page. Than in ApplicationController i have added code:

```
if session[:request].present?

        # save list
        @request = current_user.requests.create(session[:request]["request"])

        # clear session
        session[:request] = nil

```

which connect request parameters with current\_user and create new record in db.
So now only one problem, how to make multistep for my form, which in final result would be sent to create action?