但是,当我试图呈现评论框的形式,我得到一个路由错误。
But when I do try to render the comment box form, I get a routing error.
因此,理想的解决方案是打开 XM 控制台,然后将错误消息路由到该控制台。
The ideal solution, then, is to open the XM console and route error messages to it.
我更喜欢使用控制器,因为我可以使用它来触发模型逻辑,然后进行某种验证处理,接着将用户路由到一个相应的错误处理或结果页。
I prefer to use a controller, because I can use it to fire the model logic, then do some validation processing, and then route the user to an error-handling or result page as appropriate.
应用推荐