heroku - rails tutorial chapter 10 sendgrid -
i'm newbie, , self-teaching myself via michael hartl's ruby on rails tutorial.
i've made far chapter 10 , have working in development after adding sendgrid push heroko rejected following:
nomethoderror: undefined method `action' #<rails::application::configuration:0x007fc6e0b67778>
i'm on rails 4.2.0. i'm @ loss wrong. here's production configuration:
config.action_mailer.raise_delivery_errors = true config.action_mailer.delivery_method = :smtp host = 'salty-plateau-4554.herokuapp.com' config.action_mailer.default_url_options = { host: host } actionmailer::base.smtp_settings = { :address => 'smtp.sendgrid.net', :port => '587', :authentication => :plain, :user_name => env['sendgrid_username'], :password => env['sendgrid_password'], :domain => 'heroku.com', :enable_starttls_auto => true }
and gemfile:
source 'https://rubygems.org' gem 'rails', '4.2.0' gem 'bcrypt', '3.1.7' gem 'faker', '1.4.2' gem 'carrierwave', '0.10.0' gem 'mini_magick', '3.8.0' gem 'fog', '1.23.0' gem 'will_paginate', '3.0.7' gem 'bootstrap-will_paginate', '0.0.10' gem 'bootstrap-sass', '3.2.0.0' gem 'sass-rails', '5.0.1' gem 'uglifier', '2.5.3' gem 'coffee-rails', '4.1.0' gem 'jquery-rails', '4.0.3' gem 'turbolinks', '2.3.0' gem 'jbuilder', '2.2.3' gem 'sdoc', '0.4.0', group: :doc group :development, :test gem 'sqlite3', '1.3.9' gem 'byebug', '3.4.0' gem 'web-console', '2.0.0.beta3' gem 'spring', '1.1.3' end group :test gem 'minitest-reporters', '1.0.5' gem 'mini_backtrace', '0.1.3' gem 'guard-minitest', '2.3.1' end group :production gem 'pg', '0.17.1' gem 'rails_12factor', '0.0.2' gem 'puma', '2.11.1' end
please send wisdom in bulk.
you need add sendgrid-ruby gem in production gemfile , push on heroku.
Comments
Post a Comment