In your controller action , add this line def actionname @types = ModelName.select(:diettype).distinct .. end. where,.
確定! 回上一頁