codahale.com٭blog

Coda Hale lives in Berkeley, CA, where he writes about Ruby on Rails, usability, web design and development, and the occasional bit about bicycles.

Google Limbo

Well, I’m not terribly sure why, but for whatever reason, Google decided that the authoritative version of each of my posts was the content-less RSS2 comments feed:

Witness the lack of content.

Now, I can understand that my being number one in Google’s results for “ruby howto” may have been a fluke. That said, I find it absolutely insane that searching for “Coda Hale” doesn’t return any hits from my main website which is updated every week or so.

Whisky tango foxtrot, Google?

Obviously I’m miffed because this happened right after I got Mint, so I get to see the number of people coming to this blog dropping off until, instead of a histogram, it just has a cartoon of some sad mothballs. Anyways, I’ve removed links to the RSS2 comments feeds (sorry, world) and set up a 301 redirect from them back to the actual content.

DO YOU HEAR ME, GOOGLE? I’M RIGHT OVER HERE. WITH THE CONTENT.

I’ve even delayed releasing a few plugins because no one would notice, so to commemorate Google rediscovering this site (knock on wood), here’s a taste from an upcoming plugin:


class Person < ActiveRecord::Base
  has_one :teddy_bear
  has_many :robot_enemies
  searchable_by :fields => [:name, :description, :teddy_bear, :robot_enemies],
                :include => [:teddy_bear, :robot_enemies]
end

class PeopleController < ApplicationController
  def search
    @results = smart_search :for => params[:query],
                            :in => [Person],
                            :limit => 10
  end
end

And I’ll say this much: it’ll even work in SQLite.

2 comments »