Rails foundationSort Order

Rails: Active Record Enum

In this episode we show you how to use active record enum to store the status of the post. We need to be able to differentiate between posts that are being drafted and posts that are published.