Posts Tagged ‘Ruby’

TDD - Beyond The Buzzwords

Posted on July 26th, 2009 by macskeptic

The "Beyond The Buzzwords" series is focused on giving those who are starting to write automated tests a practical overview, so that they begin to get a grasp on the mechanics of doing it. Also, to encourage those who don’t do it yet to begin doing so. That said, the idea is to not be [...]

BDD - Beyond the Buzzwords

Posted on July 24th, 2009 by macskeptic

This post is going to be the first of a series "Beyond The Buzzwords" of two (maybe three). This being a subject that has been getting some hype everywhere now doesn’t seem to be the kind of thing you would normally see here. We generally like to talk about the state of the art, and [...]

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 [...]