Forum: Ruby on Rails RE: Validation issues

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Buntin, Seth - KATE (Guest)
on 2006-02-21 22:52
(Received via mailing list)
I don't understand.  I am putting in bad values so I can errors and view
them.  Where would I put @focuses = Focus.find :all?
Nick S. (Guest)
on 2006-02-21 22:56
(Received via mailing list)
Because you are redisplaying to form for the user to correct right?
And in that form you have a select box for those values right? Well,
you need values to select from! It has nothing to do with validations
at all, but with just the way rails works.

You are making a new request, the old values from your previous
request aren't saved and need to be reloaded.

Craig W. (Guest)
on 2006-02-21 23:02
(Received via mailing list)
insert the line just before your

  render :action => ...

that causes the page to reload.

This topic is locked and can not be replied to.