Where to put constants in Rails

Posted by Sam on Stack Overflow See other posts from Stack Overflow or by Sam
Published on 2010-04-29T08:15:14Z Indexed on 2010/04/29 8:17 UTC
Read the original article Hit count: 290

Filed under:

I have a few constants which are arrays that I don't want to create db's for but I don't know where to store the constants without getting errors.

For example

CONTAINER_SIZES = [["20 foot"],["40 foot"]]

Where can I store this so all models and controller have access to this?

© Stack Overflow or respective owner

Related posts about ruby-on-rails