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 uses a 404 code in [...]
Passenger 2.1.1 and Local Production Environment
by Jason on 04. Mar, 2009 in Ruby
If you’re on the passenger 2.1.1 beta and having problems locally with getting your rails apps to not be in the production environment, read on.
Ruby Hash Trickery
by Jason on 03. Mar, 2009 in Ruby, Uncategorized
Ilya Grigorick put up a pretty cool pastie showing a neat hack to make Ruby hashes raise errors with invalid keys: Delicious Digg This Post Facebook Reddit This Post
Rails Magazine Issue 1
by Jason on 01. Mar, 2009 in Ruby
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. Delicious Digg This Post Facebook Reddit This Post
Ruby Interpreter Comparison
by Jason on 28. Feb, 2009 in Ruby
I did a talk at QCon a while back on the different Ruby Virtual Machines. You can check out the presentation the InfoQ web site: Ruby VMs: A Comparison. Delicious Digg This Post Facebook Reddit This Post
Offline Gem Server RDocs
by Jason on 22. Feb, 2009 in Ruby
ol li { margin: 15px 0 10px 0 } Click To Zoom Get Sinatra, Rubygems, and Passenger working for offline RDocs? Count me in. I saw this and new I had to have it. I’ve been on some long plane rides recently and I frequently find myself wanting to look up something from a gem’s [...]
Turning Off Webrat’s Automatic Browser Opening
by Jason on 18. Feb, 2009 in Ruby
If you’re using webrat for doing your integration testing with Rails and you’re on OS X you may notice that webrat opens an html version of the failing test every time you run it. This can be fairly annoying if you’re running autotest. I didn’t see how to turn it off in the documentation but [...]
Mepisto to WordPress Converter
by Jason on 11. Jan, 2009 in Ruby
As a recent experiment, I tried converting a blog from Mephisto to WordPress. After some quick Googling, I found out that Jason Gill had already largely solved the problem. Unfortunately, his solution didn’t completely work for me because I didn’t want to launch Mephisto to do it and I have an aversion with that much [...]
About




