I used to put Global variables in environment.rb with my Rails 2.3.8 application such as:
MAX_ALLOWD_ITEMS = 6
It doesn\'t seem to work in
I usually go with application_helper.rb This is what it looks like:
module ApplicationHelper def my_global_variable my_global_variable = "Helloworld!" end end
Then I can put in my_global_variable anywhere as a function.