[Rails] Rails 101 - Validation
Stefan Arentz
stefan.arentz at norad.org
Fri Dec 10 21:41:35 GMT 2004
On Dec 10, 2004, at 11:54 AM, David Heinemeier Hansson wrote:
>> Also, when I submit the form with the code form field set to '123a',
>> the validation correctly kicks in and sets the error message. But it
>> also resets the code field to '0'. The name field is displayed
>> correctly however.
>
> I believe this bug is fixed in Rails 0.9. I can't find it in the
> changelog, but I just tested a similar situation in an app of mine and
> it works like you would expect it to. Beware, that if you set the
> default column value to 0, then it'll initialize the field with a 0.
>
> (I really should get Rails 0.9, shouldn't I :)?)
>
> ...also, render_action "add" just renders the template. It doesn't
> call CountriesController#add.
I upgraded to the beta-gems but it still behaves the same. I feel
pretty stupid not getting such a simple web app concept to work :)
Does anyone have a working example of this?
S.
More information about the Rails
mailing list