在Team Room示例中,如果希望列出为新主题输入的所有输入数据错误消息,可以在app \ views \ subjects \ _ form . rhtml的顶部添加以下代码。
In our Team Room example, if we want to list all input data error messages entered for a new subject, then we can add the following to the top of app \ views \ subjects \ _form.rhtml.
在下一篇文章中,我将讨论与错误处理复杂的输入数据相关的错误模式。
In the next article, I will discuss bug patterns related to the mishandling of complex input data.
有不少高级软件工程师冷静地提议说,用户输入错误的数据或错用应用程序都是咎由自取。
There are quite a few senior software engineers who soberly advise that "users get what they deserve" when they enter faulty data or otherwise misuse an application.
应用推荐