search for: load_environment

Displaying 14 results from an estimated 14 matches for "load_environment".

2006 Jul 14
2
Configuration search order
Hi I''m in the process of deciding how a plugin should be designed to make configuration as easy as possible. Right now I require the plugin from init.rb, and set some configuration options (as class attribute accessors) from environment.rb. Then I tried setting these from environments/development.rb instead, and to my surprise this didn''t work. It said the class in question
2006 Feb 26
7
LoginEngine problems
I''m trying to get a simple authentication system going for a small rails app. After much research, it looks like LoginEngine should do exactly what I want. Now, the documentation is somewhat confusing to me when looked at in the light of reality. There are some places that say you have to install the "engines" plugin. But, I cannot find such a beast. So, I installed the
2009 Jan 22
8
From Instantrails to the Mac
...rt-2.2.2/ lib/ active_support/dependencies.rb:521:in `new_constants_in'' from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/ lib/ active_support/dependencies.rb:153:in `require'' from /Users/rafaelparra/Sites/deasygn/config/environments/ development.rb:22:in `load_environment'' from /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/ initializer.rb: 340:in `load_environment'' from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/ lib/ active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'' from /opt/local...
2006 Mar 07
1
column human names in validation errors
hi, I don''t know how to change field names in error messages. if I add error message like this: errors.add( "age", "You must be at least 18 years old" ) unless age >= 18 when error occures this text is displayed Age You must be at least 18 years old so the first word(s) is column human name for that attribute. how can I change that? of course only in error
2007 Jul 26
2
Ruby 1.8.6 + Rails 1.2.3 + ErrorNotification == NameError !?
...ode] /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/ active_support/dependencies.rb:477:in const_missing'': uninitialized constant Rails::Initializer::ExceptionNotifiable (NameError) from /Users/dm/Documents/rails/pws_de/config/../config/ environments/development.rb:58:in load_environment'' from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/ initializer.rb:204:in `load_environment'' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/ active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'' from /usr/local/l...
2006 Jan 22
0
problem setting up lighttpd and rails app.
...twice. /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/initializer.rb:155:in `read'': No such file or directory - /var/lighttpd/wholesale/public/../config/../config/environments/devlopment.rb (Errno::ENOENT) from /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/initializer.rb:155:in `load_environment'' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/core_ext/kernel.rb:27:in `silence_warnings'' from /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/initializer.rb:152:in `load_environment'' from /usr/lib/ruby/gems/1.8/gems/...
2006 Aug 15
2
Start up error
...opement environment ... /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:168:in `read'': No such file or directory - /www/app.tickspot.com/config/../config/environments/developement.rb (Errno::ENOENT) from /usr/lib/ruby/gems/1.8/gems/rails- 1.1.6/lib/initializer.rb:168:in `load_environment'' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'' from /usr/lib/ruby/gems/1.8/gems/rails- 1.1.6/lib/initializer.rb:165:in `load_environment'' from /usr/lib/ruby/gems/1.8/ge...
2007 May 06
0
Initializing a Scheduler
...ck... [code] => Booting WEBrick... /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:477:in `const_missing'': uninitialized constant Rails::Initializer::StartCron (NameError) from script/../config/../config/environments/development.rb:24:in `load_environment'' from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/initializer.rb:335:in `after_initialize'' from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/initializer.rb:114:in `process'' from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/initializ...
2010 Oct 21
2
PRoblem using railroad
.../lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'': no such file to load -- config/environment (LoadError) from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'' from /home/ubuntu/.gem/ruby/1.8/gems/railroad-0.5.0/lib/railroad/ app_diagram.rb:73:in `load_environment'' from /home/ubuntu/.gem/ruby/1.8/gems/railroad-0.5.0/lib/railroad/ app_diagram.rb:18:in `initialize'' from /home/ubuntu/.gem/ruby/1.8/gems/railroad-0.5.0/lib/railroad/ models_diagram.rb:14:in `initialize'' from /home/ubuntu/.gem/ruby/1.8/gems/railroad-0.5.0/bin/railroad:...
2010 Feb 11
1
[PATCH] Provides a reference implementation management server.
...icense +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +"""WSGI environment setup for server.""" + +from ovirtserver.config.app_cfg import base_config + +__all__ = ['load_environment'] + +#Use base_config to setup the environment loader function +load_environment = base_config.make_load_environment() diff --git a/server/ovirtserver/config/middleware.py b/server/ovirtserver/config/middleware.py new file mode 100644 index 0000000..b5f47da --- /dev/null +++ b/server/ovirtserve...
2008 Sep 24
19
How to define request.domain in when testing
Hi, My application relies on request.domain for doing its job. The problem I am encountering, is that when running tests, request.domain returns "test.host", how can I change that so that it returns "mysite.com"? Thanks in advance. -- Posted via http://www.ruby-forum.com/.
2010 Feb 17
0
[PATCH] Provides the new node lifecycle events.
...icense -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -"""WSGI environment setup for server.""" - -from ovirtserver.config.app_cfg import base_config - -__all__ = ['load_environment'] - -#Use base_config to setup the environment loader function -load_environment = base_config.make_load_environment() diff --git a/server/ovirtserver/config/middleware.py b/server/ovirtserver/config/middleware.py deleted file mode 100644 index b5f47da..0000000 --- a/server/ovirtserver/config/m...
2011 Jun 11
8
Help with railroad
Can anyone help me install railroad gem? What I need is a simple class diagram of my rails website. Not necessarily with railroad (if you know any other software, for mac, that works). The website is http://railroad.rubyforge.org/ I couldn''t find any explanation on how to install it. Thank you, Rodrigo -- You received this message because you are subscribed to the Google Groups
2010 Oct 30
12
Anyone successfully ran JRuby 1.5.3, Rails 3, Tomcat6
Hi, I''ve been trying to get JRuby 1.5.3 with Rails 3 to run on the Tomcat6 server with little success. Has anyone been able to do this? If so, what issues did you have to overcome to get this to work? Also, is this a combination that you would recommend for a production site, or is it all too new and untested? The latest issue I''m stuck on right now is with the mysql-connector-