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++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -