This project is archived and is in readonly mode.
private method `split' called for #<Mime::Type:0x226f618>
Reported by ihunter | June 9th, 2009 @ 01:54 AM | in 2.x
Following error happens with Rack gem installed and vendored 2.3.2 rails:
/!\ FAILSAFE /!\ 06/08/2009 17:48 PM Status: 500 Internal Server
Error private method split' called for
#<Mime::Type:0x226f618>
/Users/ian/Projects/app/vendor/rails/actionpack/lib/action_controller/mime_type.rb:206:in `method_missing'
/Library/Ruby/Gems/1.8/gems/rack-1.0.0/lib/rack/request.rb:51:in `media_type'
/Library/Ruby/Gems/1.8/gems/rack-1.0.0/lib/rack/request.rb:117:in `parseable_data?'
/Library/Ruby/Gems/1.8/gems/rack-1.0.0/lib/rack/request.rb:138:in `POST'
Removing the Rack gem works, only problem is that rspec-rails needs the gem. Not sure where rails is getting rack from if it's not installed, is it bundled?
Comments and changes to this ticket
-
ihunter June 9th, 2009 @ 02:26 AM
- Tag cleared.
-
Bodaniel Jeanes June 10th, 2009 @ 06:08 AM
I am getting this as well. However, I get it when performing XHR requests even for non-vendored Rails on 2.3.2
+1
-
ian (at cocodot) June 10th, 2009 @ 08:41 AM
I found a temporary workaround, not sure if it's correct but it works in my case:
https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets...
Just add:
module Mime
class Type
def split(*args) to_s.split(*args) end
end
end
to a config/initializers class file.
HTH, ian
-
amanfredi (at gmail) June 10th, 2009 @ 08:53 PM
I believe this is the same as https://rails.lighthouseapp.com/projects/8994/tickets/2658-internal...
-
qoobaa June 29th, 2009 @ 08:20 PM
I think it's the same problem as in #2658. I wrote a failing test that passes on edge, so it seems to be already fixed. I suggest including the test to avoid further problems.
-
Prem Sichanugrist (sikachu) January 20th, 2010 @ 05:42 PM
- State changed from new to duplicate
Duplicate of #2658
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
Referenced by
- 2658 Internal server error after empty POST with XML content type I am also getting this error, the patch listed on https:...