make route compatible with rails 4