Forum: Ruby on Rails Non model question in a model form

Ea712fa65258a359b36d3d4e6a71cdbd?d=identicon&s=25 Asa Romberger (Guest)
on 2014-05-29 19:23
(Received via mailing list)
I am working on a Rails app where people sign up and have a profile.
When
they are first signing up, they fill in their profile but I have an
additional question when they are creating their account that alters the
initial configuration of the account but is never used afterwards, so I
don't want to include it in the profile. It is a multiple choice
question
with certain validation rules. How do I go about including this in the
form?
A47e0a6beeb9d048ff054fc1c3a97418?d=identicon&s=25 Walter Davis (walterdavis)
on 2014-05-29 19:44
(Received via mailing list)
On May 29, 2014, at 12:56 PM, Asa Romberger wrote:

> I am working on a Rails app where people sign up and have a profile. When they
are first signing up, they fill in their profile but I have an additional 
question
when they are creating their account that alters the initial configuration of 
the
account but is never used afterwards, so I don't want to include it in the
profile. It is a multiple choice question with certain validation rules. How do 
I
go about including this in the form?

How serious do these validations need to be? You may be able to do all
of this in the view, using JavaScript for validation. As long as the
result of the choice being made here is backed up by actual validations
on your model, you should be fine.

Walter
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.