Ruby Archive

32 Rack Resources to Get You Started

Rack What the heck is Rack and why is it getting so much press lately? Well, from it's tag-line: "Rack provides an minimal interface between webservers supporting Ruby and Ruby frameworks." But what does that mean? Prior to Rack if you wanted to interface with Mongrel or Thin you had to...
Read More

Rails metal call order

I was really mystified today trying to figure out how to bump up the response in Rails metal. The default metal generator generates something that looks like the following: I had mistakenly changed it to 500 and didn't realize why the app completely broke. It turns out that Rails itself...
Read More

Passenger 2.1.1 and Local Production Environment

If you're on the Passenger 2.1.1 beta and can't figure out why your rails app is going in to the production mode, it's because it sets the RackEnv environment variable production instead of the RailsEnv variable. This is fine on rails 2.3+ apps because they are based on Rack...
Read More

Ruby Hash Trickery

Ilya Grigorick put up a pretty cool pastie showing a neat hack to make Ruby hashes raise errors with invalid keys: ...
Read More

Rails Magazine Issue 1

The first issue of Rails Magazine is out! I'm super excited because I've got an article in there on receiving email with Rails. Go check it out. I can reproduce the article here after the publication has been out for 30 days so stay tuned for that....
Read More