I
I
ivasenkoartem2018-05-19 21:34:40
Ruby on Rails
ivasenkoartem, 2018-05-19 21:34:40

How to output posts in Rails without repetition?

I'm displaying records in rails:
5b006deba79fe430425654.png
How to make the output so that the records are displayed without repetition in the TYPE field? To get something like categories..
5b006e813e6b0798056092.png
Or does it need to be done in the controller by adding DEF and setting the output to be non-repetitive?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya Ponomarev, 2018-05-23
@ilyario

https://apidock.com/rails/ActiveRecord/QueryMethod...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question