search for: prepare_application

Displaying 20 results from an estimated 39 matches for "prepare_application".

2005 Dec 30
6
call a method once per page request
Hi, I''m wondering if there is a simple solution to call a method once per page request. I tried to place my call in a before_filter in ApplicationController but it''d called a second time if I use render_component from a view. Seems to me that a hook should be added in Dispatcher#prepare_application. Context: working on i18n, I''m trying to check lang either from uri, or session, or against default lang or browser prefs. This is close to routing, but I''d prefer not to interfere with routing, would be simpler. -- Jean-Christophe Michel
2006 Sep 18
2
Datebocks and EdgeRails
...r I get ArgumentError wrong number of arguments (2 for 1) RAILS_ROOT: ./script/../config/.. Application Trace | Framework Trace | Full Trace #{RAILS_ROOT}/vendor/rails/railties/lib/dispatcher.rb:104:in `require_or_load'' #{RAILS_ROOT}/vendor/rails/railties/lib/dispatcher.rb:104:in `prepare_application'' #{RAILS_ROOT}/vendor/rails/railties/lib/dispatcher.rb:39:in `dispatch'' #{RAILS_ROOT}/vendor/rails/railties/lib/webrick_server.rb:110:in `handle_dispatch'' #{RAILS_ROOT}/vendor/rails/railties/lib/webrick_server.rb:76:in `service'' c:/ruby/lib/ruby/1.8/webrick/htt...
2006 Mar 07
4
Edge Rails - same code, different issues on mac and windows
...ots, but action I hit gives me: undefined method `verify_active_connections!'' for ActiveRecord::Base:Class /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:991:in `method_missing'' ./script/../config/../vendor/rails/railties/lib/dispatcher.rb:70:in `prepare_application'' ./script/../config/../vendor/rails/railties/lib/dispatcher.rb:37:in `dispatch'' ./script/../config/../vendor/rails/railties/lib/webrick_server.rb:115:in `handle_dispatch'' ./script/../config/../vendor/rails/railties/lib/webrick_server.rb:81:in `service'' /usr/loca...
2006 Apr 11
9
Rails failure after upgrade to 1.1.2
...r/lib/ruby/gems/1.9/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:85:in `require_dependency'' /usr/lib/ruby/gems/1.9/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:85:in `require_dependency'' /usr/lib/ruby/gems/1.9/gems/rails-1.1.2/lib/dispatcher.rb:69:in `prepare_application'' /usr/lib/ruby/gems/1.9/gems/rails-1.1.2/lib/dispatcher.rb:37:in `dispatch'' /usr/lib/ruby/gems/1.9/gems/rails-1.1.2/lib/webrick_server.rb:115:in `handle_dispatch'' /usr/lib/ruby/gems/1.9/gems/rails-1.1.2/lib/webrick_server.rb:81:in `service'' /usr/lib/ruby/1.9/webr...
2007 Mar 18
2
mongrel timing out
...tion_spe cification.rb:108:in `each_value'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_spe cification.rb:108:in `verify_active_connections!'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:111:in `prepare_application'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:39:in `dispatch'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel/rails.rb:78:in `process'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel/rails.rb:76:in `synchronize'' /usr/local/...
2005 Nov 22
2
Error messages: relative paths seem weakly handled?
...' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.3/lib/active_support/dependencies.rb:207:in `load'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action_controller/routing.rb:555:in `reload'' /usr/local/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/dispatcher.rb:69:in `prepare_application'' /usr/local/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/dispatcher.rb:37:in `dispatch'' /usr/local/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/webrick_server.rb:117:in `handle_dispatch'' /usr/local/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/webrick_server.rb:83:in `service'' /...
2006 Mar 14
2
no such file to load -- login_system
.../usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:97:in `const_load!'' /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:80:in `const_load!'' /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/dispatcher.rb:71:in `prepare_application'' /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/dispatcher.rb:37:in `dispatch'' dispatch.cgi:10 The tutorial I followed to set up the login system is here... http://wiki.rubyonrails.com/rails/pages/HowToQuicklyDoAuthenticationWithLoginGenerator I''ve got my host to...
2006 Apr 11
18
Rails 1.1 in Production
...n my vendor diretory. But It looks like its still using local gem libraries, here is the error from dispatch.fcgi when I try and invoke my app NoMethodError (undefined method `const_load!'' for Controllers:Module): /usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/dispatcher.rb:71:in `prepare_application'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/dispatcher.rb:37:in `dispatch'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:141:in `process_request'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:53:in `process!'&...
2006 Jul 21
3
Help me run rails on apache on Linux Fedora
...ting interesting things and following along to see what was blowing up. I followed it to: /usr/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/dispatcher.rb And in particular the the lines: request, response = ActionController::CgiRequest.new(cgi, session_options), ActionController::CgiResponse.new(cgi) prepare_application ActionController::Routing::Routes.recognize!(request).process(request, response).out(output) It seems that both request and response are nil, at least I get I 500 error if I try to access them in some way. Any help would be appreciated, I have spent about 3 days on this so far, and am very much t...
2006 May 29
0
MissingSourceFile (no such file to load -- breakpoint):
...'' /usr/lib64/ruby/gems/1.8/gems/activesupport-1.3.0/lib/active_support/dependencies.rb:136:in `require'' /usr/lib64/ruby/gems/1.8/gems/rails-1.1.0/lib/dispatcher.rb:80:in `prepare_breakpoint'' /usr/lib64/ruby/gems/1.8/gems/rails-1.1.0/lib/dispatcher.rb:68:in `prepare_application'' /usr/lib64/ruby/gems/1.8/gems/rails-1.1.0/lib/dispatcher.rb:37:in `dispatch'' /usr/lib64/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel/rails.rb:66:in `process'' /usr/lib64/ruby/1.8/thread.rb:135:in `synchronize'' /usr/lib64/ruby/gems/1.8/gems/mong...
2006 Apr 10
0
Problem with freezing rails to vendor/rails
...p://dev.rubyonrails.org/svn/rails/tags/rel_1-1-1/ Here is the error I''ve been getting (app started using the TXD rails.sh script): NoMethodError (undefined method `const_load!'' for Controllers:Module): /usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/dispatcher.rb:71:in `prepare_application'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/dispatcher.rb:37:in `dispatch'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:141:in `process_request'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:53:in `process!...
2008 Jun 24
0
scoped_access plugin and 2.0
Hi It would seem that the scoped_access plugin from http://wota.jp/svn/rails/plugins/branches/stable/scoped_access is incompatible with Rails 2.0.2. /home/httpd/rails/demoone/vendor/plugins/scoped_access/init.rb:18:in `alias_method'' undefined method `prepare_application'' for class `Class'' ( NameError ) from /home/httpd/rails/demoone/vendor/plugins/scoped_access/init.rb: 18:in `evaluate_init_rb'' ... It looks like I can replace its use in around_filter in my controllers with with_scope which has to be in the models. Chris --~--~--------...
2006 May 25
5
Application stops working over night: (Errno::EPIPE (Broken pipe)) is the error
...nection_adapters/abstract/connection_specification.rb:99:in `verify_active_connections!'' /vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:98:in `verify_active_connections!'' /vendor/rails/railties/lib/dispatcher.rb:70:in `prepare_application'' /vendor/rails/railties/lib/dispatcher.rb:37:in `dispatch'' /vendor/rails/railties/lib/fcgi_handler.rb:150:in `process_request'' /vendor/rails/railties/lib/fcgi_handler.rb:54:in `process!'' /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./fcgi.rb:600:in `e...
2007 Dec 07
0
Errno::ECONNRESET (Connection reset by peer):
....rb:99:in `verify_active_connections!'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/abstract/connection_specification.rb:98:in `verify_active_connections!'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:70:in `prepare_application'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:37:in `dispatch'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/fcgi_handler.rb:150:in `process_request'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/fcgi_handler.rb:54:in `process!'&...
2008 Aug 26
6
Rails deployment issue... no such file or directory - getcwd? huh?
...tiverecord/lib/../../activesupport/lib/ active_support/dependencies.rb:60:in `depend_on'' /vendor/rails/activerecord/lib/../../activesupport/lib/ active_support/dependencies.rb:442:in `require_dependency'' /vendor/rails/actionpack/lib/action_controller/dispatcher.rb: 141:in `prepare_application'' /vendor/rails/actionpack/lib/action_controller/dispatcher.rb: 178:in `send!'' /vendor/rails/actionpack/lib/action_controller/dispatcher.rb: 178:in `run_callbacks'' /vendor/rails/actionpack/lib/action_controller/dispatcher.rb: 175:in `each'' /vendor/...
2006 Jul 31
0
rescue_action_in_public useless to capture low level errors
...pc/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:98:in `verify_active_connections!'' /Applications/__my/__dev/Locomotive2/Bundles/rails112.locobundle/powerpc/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:70:in `prepare_application'' /Applications/__my/__dev/Locomotive2/Bundles/rails112.locobundle/powerpc/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:37:in `dispatch'' /Applications/__my/__dev/Locomotive2/Bundles/rails112.locobundle/powerpc/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:150:in...
2007 Jul 18
6
Yet another "mongrel dying daily" case
...tion_specification.rb:108:in `each_value'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:108:in `verify_active_connections!'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:111:in `prepare_application'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:39:in `dispatch'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:78:in `process'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in `synchronize'' /usr...
2006 Sep 25
8
mongrel.pid disappearing
Hi to everybody, This my first post on the list. I''m a newby of mongrel & rails, I''ve deployed my first project and everything seems to work fine, the only problem I have is the following: After about 1 or 2 days of the mongrel_rails daemon running the mongrel.pid in the log directory disappears, the mongrel process is still there running but doesn''t respond
2006 Mar 07
12
Edge Rails doesn''t work for my app
My app was fine before "rake freeze_edge" but after, I can no longer boot up webrick. I''m on Win Xp MySql backend and this is what I get => Booting WEBrick... ./script/../config/../vendor/rails/activesupport/lib/active_support/core_ext/ker nel/agnostics.rb:7:in ``'': Exec format error - rake tmp:create (Errno::ENOEXEC) from
2006 Jan 04
3
Intermittent problem with link_to_remote()
...39; F:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:207:in `load'' F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/routing.rb:555:in `reload'' F:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/dispatcher.rb:69:in `prepare_application'' F:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/dispatcher.rb:37:in `dispatch'' F:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:141:in `process_request'' F:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:53:in `process!''...