[Rails] [ANN] Rails 0.9.4: Caching, filters, SQLite3?

Ollivier Robert roberto at keltia.freenix.fr
Tue Jan 18 12:10:45 GMT 2005


According to David Heinemeier Hansson:
> Those were the highlights, but Rails 0.9.4 includes no less than 50 
> changes, fixes, and features. You can read the full story in the 
> changelogs:

No changes in ActiveMailer ?

My application is not getting an error from TMail when trying to send
mail...

controllers/bada_controller.rb:
-----
  def submit
    @missing = check_for_mandatory(@params)
    if @missing.length != 0 then
      render "/bada/registration"
    else 
      Notification.server_settings[:address] = "relay.eurocontrol.fr"
      Notification.server_settings[:domain] = Host.hostname
      Notification.deliver_form_data(@params)
      render "/bada/form_ok"
    end
  end
end
-----

models/notification.rb:
-----
  def form_data(parameters)
    @recipients = BCC
    @from = FROM
    @to = RECIPIENTS
    @headers['bcc'] = BCC.to_s
    @headers['user-agent'] = "Rails/bada-1.0"
    @subject = "New BADA request from #{parameters['l_name']} by #{parameters['a_email']}"
    @body = parameters.dup
  end
end
-----

Log:

NoMethodError (undefined method `from_address' for
#<TMail::Mail:0x1495898>):
    /opt/local/lib/ruby/gems/1.8/gems/actionmailer-0.6.0/lib/action_mailer/base.rb:131:in `perform_delivery_smtp'
    /opt/local/lib/ruby/gems/1.8/gems/actionmailer-0.6.0/lib/action_mailer/base.rb:129:in `start'
    /opt/local/lib/ruby/1.8/net/smtp.rb:316:in `start'
    /opt/local/lib/ruby/gems/1.8/gems/actionmailer-0.6.0/lib/action_mailer/base.rb:129:in `perform_delivery_smtp'
    /opt/local/lib/ruby/gems/1.8/gems/actionmailer-0.6.0/lib/action_mailer/base.rb:124:in `send'
    /opt/local/lib/ruby/gems/1.8/gems/actionmailer-0.6.0/lib/action_mailer/base.rb:124:in `deliver'
    /opt/local/lib/ruby/gems/1.8/gems/actionmailer-0.6.0/lib/action_mailer/base.rb:100:in `method_missing'
    /app/controllers/bada_controller.rb:79:in `submit'
    /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.3.0/lib/action_controller/base.rb:596:in `send'
    /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.3.0/lib/action_controller/base.rb:596:in `perform_action_without_filters'
    /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.3.0/lib/action_controller/filters.rb:294:in `perform_action_without_benchmark'
    /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.3.0/lib/action_controller/benchmarking.rb:30:in `perform_action_without_rescue'
    /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.3.0/lib/action_controller/benchmarking.rb:30:in `measure'
    /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.3.0/lib/action_controller/benchmarking.rb:30:in `perform_action_without_rescue'
    /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.3.0/lib/action_controller/rescue.rb:75:in `perform_action'
    /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.3.0/lib/action_controller/base.rb:263:in `send'
    /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.3.0/lib/action_controller/base.rb:263:in `process'
    /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.3.0/lib/action_controller/base.rb:241:in `process'
    /opt/local/lib/ruby/gems/1.8/gems/rails-0.9.4/lib/dispatcher.rb:40:in `dispatch'
    /Volumes/Users/www/snuadh/bada/public/dispatch.rb:10
    /opt/local/lib/ruby/gems/1.8/gems/rails-0.9.4/lib/webrick_server.rb:101:in
`load'
    /opt/local/lib/ruby/gems/1.8/gems/rails-0.9.4/lib/webrick_server.rb:101:in
`handle_dispatch'
    /opt/local/lib/ruby/gems/1.8/gems/rails-0.9.4/lib/webrick_server.rb:80:in
`handle_mapped'
    /opt/local/lib/ruby/gems/1.8/gems/rails-0.9.4/lib/webrick_server.rb:34:in
`do_POST'
    /opt/local/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in
`__send__'
    /opt/local/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `service'
    /opt/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
    /opt/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
    /opt/local/lib/ruby/1.8/webrick/server.rb:155:in `start_thread'
    /opt/local/lib/ruby/1.8/webrick/server.rb:144:in `start'
    /opt/local/lib/ruby/1.8/webrick/server.rb:144:in `start_thread'
    /opt/local/lib/ruby/1.8/webrick/server.rb:94:in `start'
    /opt/local/lib/ruby/1.8/webrick/server.rb:89:in `each'
    /opt/local/lib/ruby/1.8/webrick/server.rb:89:in `start'
    /opt/local/lib/ruby/1.8/webrick/server.rb:79:in `start'
    /opt/local/lib/ruby/1.8/webrick/server.rb:79:in `start'
    /opt/local/lib/ruby/gems/1.8/gems/rails-0.9.4/lib/webrick_server.rb:19:in
`dispatch'
    ./script/server:49                                                          
-- 
Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto at keltia.freenix.fr
Darwin snuadh.freenix.org Kernel Version 7.7.0: Sun Nov  7 16:06:51 PST 2004


More information about the Rails mailing list