>
> I've tried to be clever about this many times, and it always ends up in a 
> huge mess. So instead of trying to detect the exact issue, I will rather 
> just tell the user what needs to be done:
>
> % if (validation->has_error('username') {
>   <p class="help"><%=l 'You need to fill in a username, which needs to 
> be...' %></p>
> % }
>

This is the correct solution.

--
sebastian 

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to