Forum: Ruby on Rails RE: Validation issues

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

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

else
  render :action => ...

that causes the page to reload.

Craig
This topic is locked and can not be replied to.