下面是我的environment.rb文件中錯誤的environment.rb文件中的配置下(Ruby on Rails的)
require File.expand_path('../application', __FILE__)
Wiyo::Application.initialize!
config.action_mailer.smtp_settings = {
address: "smtp.gmail.com",
port: 587,
domain: "example.com",
authentication: "plain",
enable_starttls_auto: true,
user_name: '[email protected]',
password: '********'
}
我在**節把我的Gmail密碼。但是當我做耙:db遷移,它顯示錯誤environment.rb文件告訴我
7:in'>'。
請幫幫我。我在我的Rails應用程序中創建郵件功能。我被卡住了。
對於它的價值,您提供的代碼沒有任何問題,據我所知。請發佈實際的錯誤消息。 –