I am pretty new to Rails and I'm working with a new code base that sometimes uses two different syntax for the same thing.
class: 'item'
vs
:class => "item"
However, I have have not been able to find what the difference is or which style I should use as best-practice.
I assume that it has something to do with the Rails version. We are planning to move to Rails 6. Can somebody shed some insight on this for me?