Fix routes auto generated by rails.