开发者

errors shown like "{{attribute}} {{message}}" rails 2.3.8

Something happen and now my errors are displayed like "{{attribute}} {{message}}".

For example:

<% form_for(@usuario) do |f| %>
  <% if @usuario.errors.any? %>
    <div id="errorExplanation">
      <br />
      <h2><%= @usuario.errors.count %> errores encontrados:&开发者_如何学Pythonlt;/h2>
      <br/>
      <ul>
      <% @usuario.errors.full_messages.each do |msg| %>
        <p>- <%= msg %></p>
      <% end %>
      </ul>
      <br/>
    </div>
  <% end %>

.
.
.
<%end%>

shows the errors message like:

1 errores encontrados:

    - {{attribute}} {{message}}

Why? What did I do wrong?

Thx.

RESOLVED: I did a rails upgrade from 2.3.8 to 2.3.9...

gem install -v 2.3.9 rails And that solve it!!! =)** --include-dependencies


You have an incompatible version of the i18n gem. Try downgrading to a lower version.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜