Posts Tagged ‘http’

Posting and Getting files in ruby/rails

Posted on May 23rd, 2009 by macskeptic

Today I’m going to show some very short snippet about posting files with ruby, and receiving them in a rails controller.
For all examples I’ll be using the rest-client gem (”sudo gem install rest-client”).
The fist thing we’re going to do is to implement a very basic file post in ruby - there is basically two methods:

You [...]