Re: Validations issue

Finne Jager
Wed, 05 Jan 2011 17:59:44 -0000

Colin Law wrote in post #972568:
> On 5 January 2011 17:22, Finne Jager
<lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:
>>    format.html { redirect_to(edit_incident_timesheet_path, :notice
>> => ''Could not save Command Officer.'') }
>>
>>
>> Now when I enter ''aaa'' in the Rate field and submit,
the record DOES NOT
>> get saved to the database, but the controller redirects with
''Command
>> officer was successfully created.'' instead of giving me
reasons why the
>> record could not be saved.
>
> Do your tests that check that the validations on CommandOfficer work
> correctly pass ok?
>
> Colin

I haven''t learned much about tests yet and haven''t used them
so far.