Displaying 7 results from an estimated 7 matches for "additional_load_paths".
2005 Feb 08
2
test_process.rb => LoadError
...OOT)
# Temporary hack for getting functional tests in Rails running under
1.8.2
class Object #:nodoc:
alias_method :require_without_load_path_reloading, :require
def require(file_name)
begin
require_without_load_path_reloading(file_name)
rescue Object => e
ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if
File.directory?(dir) }
require_without_load_path_reloading(file_name)
end
end
end
end
Can we change the rescue line to:
rescue LoadError => e
I''m not sure what this "temporary hack for getting functional tests in...
2006 Mar 02
5
Instiki and SQL Server??
...tiki-ar/script/../config/environment.rb:16: warning:
already init
ialized constant RAILS_ROOT
C:/software/instiki-ar/script/../config/environment.rb:23: warning:
already init
ialized constant RAILS_ENV
C:/software/instiki-ar/script/../config/environment.rb:26: warning:
already init
ialized constant ADDITIONAL_LOAD_PATHS
C:/software/instiki-ar/script/../config/environment.rb:73: warning:
already init
ialized constant RAILS_DEFAULT_LOGGER
C:/software/instiki-ar/script/../config/environment.rb:90: warning:
already init
ialized constant Controllers
Creating tables for production...
failed: #<RuntimeError: Unknown d...
2007 Jan 19
1
Trouble with Rails/Ri18n
...;'u'' # unicode
require ''jcode'' # correct string methods for
utf8
I18nService.instance.po_dir = "locale" # original:
"#{RAILS_ROOT}/locale"
I18nService.instance.lang = ''de''
ADDITIONAL_LOAD_PATHS.concat %w(
# ... other entries
vendor
vendor/ri18n/lib
# ... other entries
).map { |dir| "#{RAILS_ROOT}/#{dir}" }.select { |dir|
File.directory?(dir) }
/locale/de.po states:
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR Free Software Foundation, Inc.
# This file...
2006 May 29
0
Non standard rubygems location
....112] Premature
end of script headers: dispatch.cgi
I have RUBYLIB set appropriately in my bash_profile and can "require
''rubygems''" in irb, but nothing works trying to make this available to
Apache. I''ve also tried adding -I to the shebang line, concatting to
ADDITIONAL_LOAD_PATHS in various locations, and probably a few other
things I can''t remember. Same result every time.
jh
--
James Hughes
Web application developer
Vancouver, BC
"Developing a coherent political analysis is in many respects
contingent upon an ability to connect one context to another, a...
2006 Apr 14
0
Premature end of script headers
...emature end of script headers:
/home/user/public_html/rails/dispatch.cgi
-----------------------------------------
dispatch.cgi
----------------
#!/usr/local/bin/ruby
require File.dirname(__FILE__) + "/../config/environment" unless
defined?(RAILS_ROOT)
require "dispatcher"
ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if
File.directory?(dir) } if defined?(Apache::RubyRun)
Dispatcher.dispatch
-----------------------------------------
.htaccess
------------
Options +FollowSymLinks +ExecCGI
*********************************
We dont know what is wrong. Anyone got idea or any...
2006 Aug 03
0
Can''t set up rails: dispatch.cgi failed
...ot;
dispatch.cgi
-----------------
#!/usr/local/bin/ruby
require File.dirname(__FILE__) + "/../config/environment" unless
defined?(RAILS_ROOT)
require "dispatcher"
#require
"/usr/local/lib/ruby/gems/1.8/gems/actionwebservice-1.1.4/lib/action_web_service/dispatcher"
ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if
File.directory?(dir) } if defined?(Apache::RubyRun)
Dispatcher.dispatch
--
Posted via http://www.ruby-forum.com/.
2005 Jul 05
2
Salted hash login generator (verification problem?)
...al/admin/../../../config/environment.rb:1: warning:
already initialized constant RAILS_ROOT
./test/functional/admin/../../../config/environment.rb:2: warning:
already initialized constant RAILS_ENV
./test/functional/admin/../../../config/environment.rb:6: warning:
already initialized constant ADDITIONAL_LOAD_PATHS
./test/functional/admin/../../../config/environment.rb:52: warning:
already initialized constant RAILS_DEFAULT_LOGGER
./test/functional/admin/../../../config/environment.rb:66: warning:
already initialized constant Controllers
Loaded suite
/usr/local/lib/ruby/gems/1.8/gems/rake-0.5.4/lib/rake...