table テーブルのデータのidだけ取る

    @categoriesid = Category.select(:id)