Displaying 1 result from an estimated 1 matches for "definitely_not_x".
Did you mean:
definitely_not_sa
2007 Oct 04
0
Module + Constant Issue
..."list_constant"
>> AppConstants::IMPORTANT_VALUE
=> "x"
4) Quit from the console and add development-specific value for the
constant defined in the environment file:
At the end of config/environments/development.rb, add:
module AppConstants
IMPORTANT_VALUE = "definitely_not_x"
end
5) Fire up the console again and probe the constant values:
Loading development environment.
>> AppConstants::List::LIST_CONSTANT
NameError: uninitialized constant
Rails::Initializer::AppConstants::List
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/
active...