阅读背景:

如何在Rails 4模型中存储符号?

来源:互联网 

I often need to store a constant. Symbols work well for defining constant types, but I don't know how to define them in a Rails model. I would create a separate model to store the types. For example, I have a I often need to store a constant. Symbols work




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: