Rails routes bug fix