In config/application.rb, there is an example code to add a
load_path for I18n, i.e.
config.i18n.load_path += Dir[Rails.root.join('my', 'locales',
'*.{rb,yml}')]
When I uncommented this line and tried to start the server by
"rails server", starting the server failed with an error message
"config/application.rb:29:in []': can't convert Pathname into
String (TypeError)".
As a work around, I changed it to
config.i18n.load_path += Dir[File.join(Rails.root, 'my', 'locales',
'*.{rb,yml}')]
Then the server started successfully without the error.