module ConstantModelName
AIRPORT = "Airport"
end
This module is in lib folder of my app.
I want avialble this constant(AIRPORT) value to my views. Is this possible? If 开发者_运维问答Yes, how can i do this?Thanks in advance
Use ConstantModelName::AIRPORT in your views.
精彩评论