Skip to content

Instantly share code, notes, and snippets.

@aalvesjr
Created November 29, 2012 19:44
Show Gist options
  • Save aalvesjr/4171368 to your computer and use it in GitHub Desktop.
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
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