Forum: Ruby on Rails multipage form with devise and another model

194f729f4b145e88167e476a338b9572?d=identicon&s=25 Roelof Wobben (roelof)
on 2014-08-20 08:27
(Received via mailing list)
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
Fde839db701c9efdfb1b30823b9a2cc8?d=identicon&s=25 Robby O'Connor (Guest)
on 2014-08-20 08:45
(Received via mailing list)
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk...
<https://groups.google.com/d/msgid/rubyonrails-talk...
.
For more options, visit https://groups.google.com/d/optout.
194f729f4b145e88167e476a338b9572?d=identicon&s=25 Roelof Wobben (roelof)
on 2014-08-20 10:46
(Received via mailing list)
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:
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.