search for: zirellu

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

Did you mean: cirelle
2006 Jan 20
2
what''s the right way to require a file?
...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 require ''model_pathway_object'' With these changes WEBrick wouldn''t start: [luca@zirellu pa_web] ./script/server => Booting WEBrick... [luca@zirellu pa_web] So I moved the require to the top of my controller''s file. Now WEBrick starts, but the first time I place a request to the controller I get an error (Gem::LoadError in <controller not set>#<action not set&g...