In RoR, on one form if I 've applied validations to 7 fields & while
running an application if user insert invalid values in i.e. 3 fields at
that time RoR shows error message for all 3 fields.
I want error messages to be shown one-by-one....
Like if user correct first field then only he 'll get error for second
field not before that.
In RoR, on one form if I 've applied validations to 7 fields & while
running an application if user insert invalid values in i.e. 3 fields at
that time RoR shows error message for all 3 fields.
I want error messages to be shown one-by-one…
Like if user correct first field then only he 'll get error for second
field not before that.
That sounds worse for the user, they have to submit each time only to be told “hang on, there’s something else wrong - I knew about it before but you’re too stupid to be told more than one thing at a time”.
However, it’s your app…
I’d recommend using the @object.errors enumerator yourself rather than just relying on error_messages_for. For example:
That sounds worse for the user, they have to submit each time only to be
told "hang on, there's something else wrong - I knew about it before but
you're too stupid to be told more than one thing at a time".
---------------------------------------------
dear Andy,
Thanks for your help... I too know it's stupidity to show one-by-one
message
but while you work as developer you need to follow requirements given by
client & that 's strictly professional in big industry...