Issue #5756 has been updated by Shota Fukumori.

Status changed from Open to Feedback

* please upload full of log; your uploaded "crashog.txt" seems partial.
* "ruby -v" is not output of `ruby -v`; please paste exact output of "ruby -v" like this: ruby 2.0.0dev (2011-11-25 trunk 33837) [x86_64-darwin11.2.0]

thanks.
----------------------------------------
Bug #5756: crashs when Twitter.update_with_media with rails
http://redmine.ruby-lang.org/issues/5756

Author: SungHee Kang
Status: Feedback
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: 1.9.3.dev


I'm using the Ruby 1.9.3dev and Ruby on Rails 3.1.3
When I use twitter gem and call 'Twitter.update_with_media', the interpreter crashs.

~~ ruby
class WelcomeController < ApplicationController
  def upload
    Twitter.update_with_media("I'm tweeting with gem!", File.new('screenshot.png'))
  end
~~

it doesn't crash when I use 1.9.2. or 1.9.3dev without rails.
You can reproduse this situation to

 1. create new rails 3.1.3 projects
 2. add gem 'twitter' in your Gemfile
 3. configure twitter consumer key, secret and oauth token, secret in your config/initializers
 4. make the action WelcomeController#upload and route it to POST /upload
 5. run the server and access POST /upload


-- 
http://redmine.ruby-lang.org