Re: DRY for ActiveRecord w/PostgreSQL : defaults and validations

Lugovoi Nikolai
Mon, 19 Sep 2005 11:02:29 -0000

Michael Schuerig wrote:
> On Monday 19 September 2005 11:39, Lugovoi Nikolai wrote:
>
>>As for me it''s better to make one more constraint check query
to
>>database than handling weird exception messages (or even exposing
>>them to end users).
>
>
> Before reinventing anything, have a look at
>
>   http://dev.rubyonrails.org/ticket/861
>
> Michael
>

Tnahks, but JS client-side validation can be bypassed, and server-side
then is also required. And after all there are still schema constraints
that DBMS has to check :)

I wouldn''t rely on JS client-side validation, though it can be more
user
friendly and use less traffic.

WBR, Lugovoi Nikolai