fix routes for rails 4