When I change date formats via the following entry in environments.rb
it works fine. Web pages reflect the new date format.
"ActiveSupport::CoreExtensions::Conversions::DATE_FORMATS[:default]"
The issue is when I run things like "./script/console", or
"./script/spec <filename>" I get a "NameError: uninitialized constant
ActiveSupport" issue. Any ideas how to solve this?
oh..I see there was an answer to this in a previous forum post that solves this:
looks like you've put the ActiveSupport line inside the
Rails::Initializer.run block.
you need to put it at the end of your environment.rb file, else
ActiveSupport hasn't yet been loaded... hence the exception it raises.