Stating CONSTANT values in a Ruby on Rails application -


i using ruby on rails 3.0.7 , state somewhere constant values accessible classes in application. use mentioned constants mostly "global" validation purposes considering use implement authorization system.

where , how have state these constants? advice about?

why dont u create .rb file in

 config/initilizers directory 

and define constants there.

ps:-- need restart server access variables.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -