Has anyone found a solution to this? It was working fine in Rails 2 but Rails 3 seems to choke on it.