Pedro Nascimento
Pedro Nascimento

Reputation: 13886

Rails i18n not finding my custom error message

What's wrong with my locale:

I'm getting:

Hotel translation missing: pt-BR.activemodel.errors.models.hotel_selector.attributes.id.must_be_filled

And my yml is like this:

pt-BR:
  activemodel:
    attributes:
      csv_invite:
        file_path: Arquivo
        group_id: Grupo
      hotel_selector:
        id: Hotel
    errors:
      models:
        hotel_selector:
          id:
            must_be_filled: deve ser preenchido

What am I doing wrong?

Upvotes: 0

Views: 323

Answers (1)

Pedro Nascimento
Pedro Nascimento

Reputation: 13886

I forgot the attributes key. Silly me.

Upvotes: 1

Related Questions