tiiin4
tiiin4

Reputation: 539

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:</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

Upvotes: 1

Views: 353

Answers (1)

Will Barrett
Will Barrett

Reputation: 2647

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

Upvotes: 4

Related Questions