The Problem

Rails development environment has incredibly slow page loads while production is fast. And when I say slow, I mean 15-30 seconds. Rails server will likely report the page as loading in under a second but it’s still taking 30 secons to show up.

The Cause

DNS problems. Nothing to do with rails, this is just the environment that’s not working. If your DNS is working correctly and you’re seeing page loads a bit faster than what I’m describing (3-8 seconds) check out rails-dev-boost

The Solution

Verify that you can ping the domain name you’re browsing to. I had some problem with my /etc/hosts file that a little bit of experimentation resolved.

If you found this helpful you might like to follow me on Twitter