Fix routes for rails 4

Resolves issue #50.