Dec 23

Date published: 12-23-2013

Rails version: 4.0.0


One tool that programmers use fairly often to store information is the enumeration. It’s most often used to store the state of objects in the model so the program knows how to interpret other data in that model. As common as enumerations are, it’s surprising that Rails doesn’t have a standard for handling it. In this tutorial, we’ll learn how to create an enumeration that follows Rails conventions and symbols. Continue reading »

Tagged with:
preload preload preload