[Rails]Browse through directories and groups