Hi,
I'm trying to externalize the strings in my application, and have this
in the environment.rb file
APP_TEXT =
(HashWithIndifferentAccess).new(YAML::load(File.open("#{RAILS_ROOT}/config/strings.yml"))),
This works fine until I try to do the functional and unit tests, where I
get an uninitialized constant HashWithIndifferentAccess (NameError).
I've tried it with Hash.HashWithIndifferentAccess,
Hash:HashWithIndifferentAccess, and Hash::HashWithIndifferentAccess and
none of these work.
Am I supposed to be including something somewhere inside of the tests?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---