Created
November 29, 2012 19:44
-
-
Save aalvesjr/4171368 to your computer and use it in GitHub Desktop.
Erro com I18n no Rails e acentos na tradução dos atributos dos models
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'yaml' # Adicionar esta linha | |
YAML::ENGINE.yamler = 'syck' # Mais esta e testar ^_^ | |
# Set up gems listed in the Gemfile. | |
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) | |
require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE']) | |
__END__ | |
# activity.yml | |
pt-BR: | |
activerecord: | |
models: | |
activity: Atividade | |
attributes: | |
activity: | |
timetable: Horário | |
description: Descrição | |
meeting_id: ID Encontro | |
# testar | |
Activity.human_attribute_name(:timetable) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment