Bug with incorrect path in Rails routing