Tag Archives: Rails

Testing Your Apps.

I’ve been really putting off using Rspec. Unfortunately ( and like the vast majority or programmers out there) I have not been writing enough tests for my apps. When I did write them, they were using Rail’s built in Test::Unit library, which, many will say… sucks. Plus, honestly, they were half assed. So, [...]
Posted in Rspec, Ruby, Ruby On Rails | Also tagged , , | Leave a comment

Mongrel + Nginx: Deploying to a subdirectory

Though using subdomains is all the rage right now, there are certianly instances where you may want to deploy your rails application to a subdirectory such as: http://www.johnyerhot.com/myrailsapp Of course Nginx makes it super easy to do so. If you need to get your webserver ready with Nginx, PHP running as a FCGI instance, and Rails [...]
Posted in Geeky, PHP, Ruby On Rails, nginx | Also tagged , , , , | 1 Comment

Integrating Google Maps in Your Rails 2.0 App.

NOTE:  THIS IS AN OLD POST AND THE INSTRUCTIONS MAY BE OUTDATED. YMMV In my first real post in a year, I thought I’d share some Ruby stuff I’ve recently done – Integrating your Rails 2.0 app with Google Maps. So, here is what we are aiming to accomplish: You are going to provide an address, say [...]
Posted in Google, Programming, Ruby On Rails | Also tagged , , | 31 Comments