New Discussion

Notifications

You’re not receiving notifications from this thread.

Enum in Models and Forms

1
Tips

I put together information I collected across different blogs, tutorials about how to use Enums in Models and Forms (focus on Rails 7). I might have missed some use cases, so feel free to comment either here or on the blog itself.
Link: https://medium.com/@spaquet/activerecord-enum-and-activeview-form-f09dca0ea4b0
Cheers

I am here to give you this wonderful thing

Join the discussion
Create an account Log in

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.