This isn't RoR :P

Furthermore, the Validation class does not define any error messages.
The error message you receive is a fallback for you not defining them
yourself.

http://github.com/cakephp/cakephp/blob/master/cake/libs/model/model.php#L2531

On Sep 8, 8:42 am, "j.blotus" <[email protected]> wrote:
> please post your $validate array and we can tell you exactly why you
> are wrong
>
> On Sep 8, 3:15 am, Joshua Muheim <[email protected]> wrote:
>
> > Really?? This sounds veeery odd to me. Ruby on Rails produces
> > meaningful error messages for every core validation rule, and I don't
> > see any reason why CakePHP shouldn't do this?
>
> > And this also doesn't answer why the "blank" rule (the only one which
> > would fit the above mentioned error message) doesn't work...
>
> > Anyway, thanks for your reply. :-)
>
> > On Tue, Sep 7, 2010 at 9:02 PM, Miles J <[email protected]> wrote:
> > > Those are the only errors you will ever receive. If you want custom
> > > error messages, you will need to manually overwrite them.
>
> > >http://book.cakephp.org/view/1143/Data-Validation
>
> > > On Sep 7, 7:09 am, psybear83 <[email protected]> wrote:
> > >> Hi everybody
>
> > >> My core validation rules always produce the same error message, that
> > >> is
>
> > >> "This field cannot be left blank"
>
> > >> Regardless of whether I use "decimal" or "email", the validation
> > >> itself works, but the error message is the wrong one.
>
> > >> And guess what? "blank" seems to be the only rule that doesn't even
> > >> work!
>
> > >> Very strange, don't you think? Any idea on what's wrong here?
>
> > >> Thanks a lot,
> > >> Josh
>
> > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp others 
> > > with their CakePHP related questions.
>
> > > You received this message because you are subscribed to the Google Groups 
> > > "CakePHP" group.
> > > To post to this group, send email to [email protected]
> > > To unsubscribe from this group, send email to
> > > [email protected] For more options, visit this group 
> > > athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to