Ask A Question

Notifications

You’re not receiving notifications from this thread.

Enum in Models and Forms

Stéphane Paquet asked in 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

Reply

I am here to give you this wonderful thing

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 86,796+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.