This project is archived and is in readonly mode.
Rails 3 ActionMailer NameError: uninitialized constant AbstractController::Collector::Mime
Reported by Myron Marston | February 26th, 2010 @ 06:46 AM | in 3.0.2
I ran across this error while getting my mail_safe gem to work with Rails 3:
NameError: uninitialized constant AbstractController::Collector::Mime from /Users/myron/.rvm/gems/ruby-1.9.1-p376/gems/actionpack-3.0.0.beta/lib/abstract_controller/collector.rb:13:in `' from /Users/myron/.rvm/gems/ruby-1.9.1-p376/gems/actionpack-3.0.0.beta/lib/abstract_controller/collector.rb:2:in `' from /Users/myron/.rvm/gems/ruby-1.9.1-p376/gems/actionpack-3.0.0.beta/lib/abstract_controller/collector.rb:1:in `' from /Users/myron/.rvm/gems/ruby-1.9.1-p376/gems/actionmailer-3.0.0.beta/lib/action_mailer/collector.rb:1:in `require' from /Users/myron/.rvm/gems/ruby-1.9.1-p376/gems/actionmailer-3.0.0.beta/lib/action_mailer/collector.rb:1:in `' from /Users/myron/.rvm/gems/ruby-1.9.1-p376/gems/actionmailer-3.0.0.beta/lib/action_mailer/base.rb:3:in `require' from /Users/myron/.rvm/gems/ruby-1.9.1-p376/gems/actionmailer-3.0.0.beta/lib/action_mailer/base.rb:3:in `' from (irb):5 from /Users/myron/.rvm/ruby-1.9.1-p376/bin/irb:15:in `'
Here's some code to reproduce. You can run it in irb and you'll get the error:
require 'rubygems'
gem 'actionmailer', '3.0.0.beta'
require 'action_mailer'
class TestMailer < ActionMailer::Base
end
My work around was to require action_dispatch/http/mime_type, but I feel like I shouldn't have to do that.
Comments and changes to this ticket
-
José Valim February 26th, 2010 @ 09:40 AM
- Assigned user changed from Mikel Lindsaar to José Valim
- State changed from new to resolved
- Milestone cleared.
Yup, fixed.
-
Repository February 26th, 2010 @ 11:15 AM
(from [b48beb6986ee3c533ccae6d54d70f3c28a80a942]) Add missing require on abstract_controller/collector [#4061 status:resolved] http://github.com/rails/rails/commit/b48beb6986ee3c533ccae6d54d70f3...
-
Jeremy Kemper October 15th, 2010 @ 11:01 PM
- Milestone set to 3.0.2
- Importance changed from to Low
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Tags
Referenced by
- 4061 Rails 3 ActionMailer NameError: uninitialized constant AbstractController::Collector::Mime (from [b48beb6986ee3c533ccae6d54d70f3c28a80a942]) Add mis...