search for: reset_appl

Displaying 20 results from an estimated 21 matches for "reset_appl".

Did you mean: reset_all
2008 Mar 18
9
Mongrel Crashes in Production
...n no one is using the app for an hour or so. This is the error that I get in the logs. (nohup.out file). The production log doesnt show anything unusual. Please help me out guys. /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/../lib/mongrel/rails.rb:98:in `reload!'': undefined method `reset_application!'' for ActionController::Dispatcher:Class (NoMethodError) from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/../lib/mongrel/rails.rb:95:in `synchronize'' from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/../lib/mongrel/rails.rb:95:in `reload!'...
2006 Mar 02
3
reloadable classes for other base classes than the built-ins
...reloadable classes that don''t extend any of the standard built in ones. So, I don''t mean to offend the Eminent Core Members by digging up their little skeletons but this code in dispacher.rb is.... well, let''s settle with saying it''s not very extendable: def reset_application! Controllers.clear! Dependencies.clear ActiveRecord::Base.reset_subclasses Dependencies.remove_subclasses_for(ActiveRecord::Base, ActiveRecord::Observer, ActionController::Base) Dependencies.remove_subclasses_for(ActionMailer::Base) if defined?(ActionMailer::Bas...
2006 Jan 19
2
Easy way to handle form input without a model class?
I have a couple forms that I''d like to be able to validate and automatically populate, but it shouldn''t be based on AR. In fact I often have a bunch of small forms that I can''t really justify writing a whole new model class for anyway. I''d like to validate the form input, and then use rails helpers to automatically populate the form if validations fail.
2006 Mar 01
3
console doesn''t reload app
When using scripts/console, changes made to any classes/methods in my application files do not reflect in the console until i restart it. I verified that RAILS_ENV is indeed set to development. Isn''t that supposed to reload the app on every call? is the console different? Thanks, Sebastian
2006 Feb 14
4
possible to reload a model in script/console(irb)?
I often use script/console to interact with models. It would be nice if script/console acted like WEBrick when it comes to reloading classes that get updated. Anyway to do this? Short of this, is there a way to tell script/console to reload a class manually? My current solution is to exit and restart script/console. -Kelly -------------- next part -------------- An HTML attachment was
2007 Mar 10
2
upgrading rails to 1.2.2 giving me mongrel errors
...usr/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/dependencies.rb:273:in `remove_unloadable_constants!'' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/dependencies.rb:72:in `clear'' /usr/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/dispatcher.rb:60:in `reset_application!'' /usr/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/dispatcher.rb:116:in `reset_after_dispatch'' /usr/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/dispatcher.rb:51:in `dispatch'' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:78:in `process'' /usr/lib/rub...
2005 Sep 27
5
Am I misunderstanding "require_dependency"?
Hi From what I understand about documentation about require_dependency, this function will work like require but the file will be reloaded on every request to the server when in development mode. I have bootstrapped am minimal RoR project with 0.13.1 Rails. I have created a minimal Controller and hooked up it''s "index" action at the site root. I have also created a
2007 Jan 24
7
Ferret problems with Rails 1.2.1
...rt-1.4.0/lib/active_support/dependencies.rb:274:in `remove_unloadable_constants!''", "/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:73:in `clear''", "/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.1/lib/dispatcher.rb:60:in `reset_application!''", "/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.1/lib/dispatcher.rb:116:in `reset_after_dispatch''", "/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.1/lib/dispatcher.rb:51:in `dispatch''", "/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.1/lib...
2005 Jan 29
6
Newbie: Unable to run new controller.
I''m only just learning to use Rails, but this seems like something very out of my control. I used GEM to download and install Rails, then created a new application and a controller and started the WEBrick server. When I try to access the new controller "Test" using http://localhost:3000/test/ I get a "Not Found" error and a great deal of output from the server
2006 Nov 05
1
Non-Fatal Anonymous Module Error
...d?'' ./script/../config/../vendor/rails/activerecord/lib/active_record/base.rb:278:in `reset_subclasses'' ./script/../config/../vendor/rails/activerecord/lib/active_record/base.rb:277:in `reset_subclasses'' ./script/../config/../vendor/rails/railties/lib/dispatcher.rb:57:in `reset_application!'' ./script/../config/../vendor/rails/railties/lib/dispatcher.rb:110:in `reset_after_dispatch'' ./script/../config/../vendor/rails/railties/lib/dispatcher.rb:50:in `dispatch'' /usr/local/lib/ruby/gems/1.8/gems/mongrel- 0.3.13.1/lib/mongrel/rails.rb:85:in `process'...
2006 Feb 17
5
Rad Rails and rails console
Hello, In learning Ruby on rails I became hooked on using the Console (ruby script/console) to interact with models. I have been playing with RadRails over the past week and haven''t figured out how to get a console going (or if this feature is even available). Though documentation is minimal, RadRails is fairly intuitive and overall a nice way to write apps. I just can''t
2006 Dec 08
4
Using custom stem analyzer giving mongrel errors
...e_support/dependencies.rb:270:in `remove_unloadable_constants!'' /Users/raymond/Rails/cart/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:73:in `clear'' /Users/raymond/Rails/cart/config/../vendor/rails/railties/lib/dispatcher.rb:60:in `reset_application!'' /Users/raymond/Rails/cart/config/../vendor/rails/railties/lib/dispatcher.rb:116:in `reset_after_dispatch'' /Users/raymond/Rails/cart/config/../vendor/rails/railties/lib/dispatcher.rb:51:in `dispatch'' /Applications/Locomotive2/Bundles/standardRailsSept2006.locobund...
2006 Jul 21
4
Using a controller to initiate a plugin?
Folks I am new so I apologize if I come off as a totaly tool. I am finding Rails to be an amazing framework to use and having fun with it. I have run into a frustrating snag however with PLUGINS. I have a plugin installed in: /myapp/vendor/plugins/ When I run: ruby script/server in /myapp/ my WEBrick starts normally and I can access IP:3000. I get the default rails index page. How do I
2006 Feb 03
4
(BUG in svn/trunk?) - superclass mismatch for any subclass of ApplicationController
I track svn/trunk of Rails using svn:externals Some change to Rails committed in the last 1-2 days broke my subclass of ApplicationController The example, below, works with Rails 1.0, but in today''s svn, it dies with the following error: "superclass mismatch for class FooController" class ApplicationController < ActionController::Base end class FooController <
2006 Jul 29
2
uninitialized constant ApplicationController
...1.3.1/lib/active_support/core_ext/class/removal.rb:16:in `remove_class''", "/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/class/removal.rb:11:in `remove_class''", "/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:55:in `reset_application!''", "/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:74:in `reset_after_dispatch''", "/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:46:in `dispatch''", "/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_serve...
2005 Jun 23
6
Problems with Hello World
Hello, I''m installed RubyOnRails in my Fedora Core 4 system. I''ve created an empty web application with: rails cookbook then a controller ruby script/generate controller MyTest And a file named my_test_controller.rb was created at cookbook/app/controller directory. I ''ve written a new method for MyTestController class like: def index render_text "Hello
2006 Mar 26
4
edge and 1.8.2/1.8.4 issues
I recently upgraded to 1.8.4 to try out mongrel, and so far have been in a kind of hell where I can''t get my app working! Currently running (or trying to run): Ruby version 1.8.4 (i386-mswin32) RubyGems version 0.8.11 Rails version 1.0.0 Active Record version 1.13.2 Action Pack version 1.11.2 Action Web Service version 1.0.0 Action Mailer version 1.1.5 Active Support version
2006 Jul 24
9
Mongrel: auto-reload plugins?
When developing applications, Webrick will automatically reload controllers, models, etc. if the source changes. For obvious reasons, it doesn''t do this for plugins, which makes it a pain to develop said plugins. I was hoping Mongrel might have some facility to say "watch this directory too and reload any changes". Obviously, re-init''ing all plugins would be
2005 Feb 24
9
[0.10.0] Update problem
.../1.8/gems/activesupport-1.0.0/lib/active_support/dependencies.rb:121:in `each''", "/opt/local/lib/ruby/gems/1.8/gems/activesupport-1.0.0/lib/active_support/dependencies.rb:121:in `clear!''", "/opt/local/lib/ruby/gems/1.8/gems/rails-0.10.0/lib/dispatcher.rb:49:in `reset_application''", "/opt/local/lib/ruby/gems/1.8/gems/rails-0.10.0/lib/dispatcher.rb:36:in `dispatch''", "/Volumes/Users/www/snuadh/bada/public/dispatch.rb:10", "/opt/local/lib/ruby/gems/1.8/gems/activesupport-1.0.0/lib/active_support/dependencies.rb:182:in `lo...
2007 Jan 11
12
Rails not properly handling Oracle db connections/sesions in dev mode
We are running edge rails with oracle. After a few hundred requests all available sesions are used up. It seems prior connections are being left open. When this happens no one using the installation of Oracle can create a new session until you kill your mongrel/webrick server. Patch #6928 addresses this problem, and i applied it to my vendor rails and it worked. I think, if possible, this