fix routes for rails4
TO BE TESTED !!!