Rails 4 routing fix.

This should fix #18.