The fourth release of rest-client includes a patch from Greg Borenstein that makes it easy to send form-urlencoded data by passing a hash instead of a string as the payload:
RestClient.post 'http://myblog.example.com/posts',
{ 'posts[title]' => 'My Post', 'posts[body]' => 'Hello, world' }