Multipage form with devise and another model

Hello,

Im thinking of making a Multi-page form .

On page 1 the name, adress and city data.
On page 2 a question which description the user needs and if the user is
also a volunteer.
On page 3 if the user is a volunteer . Here must be a login name and
password filled in. Here I want to use Devise
On page 4 the summary and a save button.

Must I now make 2 models . One devise model which contains the login
name
and password and one for the rest,
Or can this be 1 model (Devise) which contains everything.

Roelof

I’m doing something similar…I use a reference to the user…storing
extra
data elsewhere…
Hello,

Im thinking of making a Multi-page form .

On page 1 the name, adress and city data.
On page 2 a question which description the user needs and if the user is
also a volunteer.
On page 3 if the user is a volunteer . Here must be a login name and
password filled in. Here I want to use Devise
On page 4 the summary and a save button.

Must I now make 2 models . One devise model which contains the login
name
and password and one for the rest,
Or can this be 1 model (Devise) which contains everything.

Roelof


You received this message because you are subscribed to the Google
Groups
“Ruby on Rails: Talk” group.
To unsubscribe from this group and stop receiving emails from it, send
an
email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/fd023167-0903-4701-9cdb-fed019adb776%40googlegroups.com
https://groups.google.com/d/msgid/rubyonrails-talk/fd023167-0903-4701-9cdb-fed019adb776%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

So more then 1 model for storing data.

Can I look at your project how you did it exactly ?

Roelof

Op woensdag 20 augustus 2014 08:45:02 UTC+2 schreef Robert O’Connor: