Actions
Bug #5756
closedcrashs when Twitter.update_with_media with rails
Description
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
- create new rails 3.1.3 projects
- add gem 'twitter' in your Gemfile
- configure twitter consumer key, secret and oauth token, secret in your config/initializers
- make the action WelcomeController#upload and route it to POST /upload
- run the server and access POST /upload
Files
Actions
Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0