actionmailer - Rails 3 Setting Up Action Mailer -


everything going well...

gem 'mail' installed

enter > $ rails g scaffold user name:string email:string

enter > $ rake db:migrate (fine can see on http://localhost:3000/users/new) then...

enter > $ rails g mailer user_mailer

on command huge error - , how resolve it?

users/mailer_app/config/initializers/setup_mail.rb:14: uninitialized constant developmentmailinterceptor (nameerror)     /opt/local/lib/ruby/gems/1.8/gems/railties-3.0.5/lib/rails/engine.rb:201     /opt/local/lib/ruby/gems/1.8/gems/railties-3.0.5/lib/rails/engine.rb:200:in `each'     /opt/local/lib/ruby/gems/1.8/gems/railties-3.0.5/lib/rails/engine.rb:200     /opt/local/lib/ruby/gems/1.8/gems/railties-3.0.5/lib/rails/initializable.rb:25:in `instance_exec'     /opt/local/lib/ruby/gems/1.8/gems/railties-3.0.5/lib/rails/initializable.rb:25:in `run'     /opt/local/lib/ruby/gems/1.8/gems/railties-3.0.5/lib/rails/initializable.rb:50:in `run_initializers'     /opt/local/lib/ruby/gems/1.8/gems/railties-3.0.5/lib/rails/initializable.rb:49:in `each'     /opt/local/lib/ruby/gems/1.8/gems/railties-3.0.5/lib/rails/initializable.rb:49:in `run_initializers'     /opt/local/lib/ruby/gems/1.8/gems/railties-3.0.5/lib/rails/application.rb:134:in `initialize!'     /opt/local/lib/ruby/gems/1.8/gems/railties-3.0.5/lib/rails/application.rb:77:in `send'     /opt/local/lib/ruby/gems/1.8/gems/railties-3.0.5/lib/rails/application.rb:77:in `method_missing'     /users/liam_carey/documents/aptana studio 3 workspace/mailer_test/config/environment.rb:5     /opt/local/lib/ruby/gems/1.8/gems/railties-3.0.5/lib/rails/application.rb:103:in `require'     /opt/local/lib/ruby/gems/1.8/gems/railties-3.0.5/lib/rails/application.rb:103:in `require_environment!'     /opt/local/lib/ruby/gems/1.8/gems/railties-3.0.5/lib/rails/commands.rb:16     script/rails:6:in `require'     script/rails:6   user:mailer_app $  

here contents of config/initializers/setup_mail.rb

am using heroku , sendgrid , have installed plug-in.

did need install 'mail' gem first, documentation doesn't mention it??

actionmailer::base.smtp_settings = { :address        => "smtp.sendgrid.net", :port           => "25", :authentication => :plain :user_name      => "apxxxxx@heroku.com", :password       => "9xxxxxxxxx", :domain         => "www.myapp.com", } 

i know issue - there no comma after user-name , password entries!


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -