Category Archives: Ruby

Zip Code Distance Searching in Ruby on Rails

In my last entry we looked at using scopes to dynamically build scopes for searching in your Ruby on Rails application.  In Tryst, we needed to let our uses search for other singles that were xxx miles from their location.  We require that new users enter their zip code, so that is what we had [...]
Also posted in Ruby On Rails | Tagged , | 2 Comments

Smart Searching Using Anonymous Scopes

I really like how Lovetastic’s search works.  Instead of a plethora of select boxes, users can simply use expressions to create searches.  We did something similar with Tryst’s searching.  One text field and you enter stuff like age ranges (30-45), things like smoke-yes or smoke-no, cities, zipcodes, etc. To make this whole thing more Rails like, [...]
Also posted in Geeky, Hosting, PHP, Ruby On Rails, Seattle, Vacations | 1 Comment

Yes, I started a dating site. I’m sorry.

Ok, so five years ago I never would have though that I’d have started a ‘Web 2.0′ dating site.  Hell, I didn’t think I’d be doing a lot of things, but here I am.   There is actually a small story how I got involved with (shamless self promotion) trystme.com.  Wanna hear it?  Good. Originally, I wanted [...]
Also posted in Ruby On Rails | Leave a comment

Deployment Nightmare: Godaddy

Against the advice of, well, the entire Rails community, I attempted to deploy a project to Godaddy. Godaddy proudly displays the little Ruby logo next to Php when browsing through their hosting plans, and seeing as you can get Rails hosting for $7/month through them, it seems like a decent deal, even if you know it’s [...]
Also posted in Hosting, Programming, Rants, Ruby On Rails | 3 Comments

rQuote – Ruby on Rails Stock Quote Plugin

I merged some stock quoting stuff I had into a Rails plugin today. If you’d like to be able to simply grab real time stock quotes in your Rails app, this will do the job. Pretty much any stock symbol will work and you can enter as many as you’d like, you’ll get [...]
Also posted in Geeky, Linux, Programming, Ruby On Rails, stocks | 6 Comments

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, [...]
Also posted in Rspec, Ruby On Rails | Tagged , , , | Leave a comment

rDigg – Ruby on Rails Digg API plugin

I’ve sort of finished up rDigg today. It’s to the point I’m comfortable letting other people start to play with it anyways. As you’d expect, rDigg is a Digg API wrapper in the form of a Ruby on Rails plugin. It still needs some work, but works pretty well. For example: #create new Rdigg object digg [...]
Also posted in Programming, Ruby On Rails | Tagged , , , | Leave a comment

Simple Meta Programming in Ruby

Metaprogramming.  What a lovely buzz word.  I guess I’ve heard it enough and knew what the short definition is. Metaprogramming is code that writes code.  I think it is one of those things I just never thought about, even though I had used concepts and even written some before without realizing it until recently. Here [...]
Also posted in Programming, Ruby On Rails | Tagged , , | 2 Comments