In the tutorial from here the errors are printed similar to this (I added the p + " " +):

<%  if (errors) { %>
  <p> 
  <% for (var p in errors) { %>
    <div><%=  p + " " + errors[p];  %></div>
  <% } %>
  </p>
<% } %>

The thing is that the message is not relevant at all. For example, I want the title to be always present, so, if I don't enter a value, the error title [[model.validatesPresent]] is displayed, but I want something better.

Do I have to write my own procedures for creating some meaningful messages or does geddy also have some other options that could help (I haven't found anything in the documentation)? Some advice?

有帮助吗?

解决方案

Update: the issue was fixed and now localized strings work on all platforms. You can override messages as default if/when needed.

This was an issue with i18n and windows, in the meantime you can specify a message explicitly.

On your model:

this.validatesPresent("title", null, {message: "The title is required" });
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top