Along those same lines, here's a bit of code I put together that translates your Rails routes in to functions on the client. <a href="https://gist.github.com/2010242" rel="nofollow">https://gist.github.com/2010242</a>. I find these far more friendly to work with.