Use rails resources method for routes