Potential fix for issue #2

It's not beautiful, but it would work. And if the Rails core team changes the code to use to_param, this should remain working.

Please note that I couldn't get the tests to run, so while this is working in a Rails app, I'm firing pretty blind here.