search for: modelpathwayobject

Displaying 1 result from an estimated 1 matches for "modelpathwayobject".

Did you mean: model_pathway_object
2006 Jan 20
2
what''s the right way to require a file?
I''m having a problem importing a class from another project (not a RoR application). What''s the right way to require such a file? I have a class ModelPathwayObject. It''s in #{RAILS_ROOT}/../lib/model_pathway_object.rb , so I add that path to config.load_paths. In config/environment.rb: Rails::Initializer.run do |config| config.load_paths += %W( #{RAILS_ROOT}/../lib ) end I then tried to require the file from config/environment.rb by appending...