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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
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
This topic is locked and can not be replied to.