similar to: Model classes not reloaded in development

Displaying 20 results from an estimated 60000 matches similar to: "Model classes not reloaded in development"

2006 Mar 31
5
Model reloading problem
Hi all, I''ve a model class Toto in the model directory. I don''t understand why i have to restarts WebBrick to view changes i make in this class FYI : in the development. rb i desabled class cache with config.cache_classes = false Regards Luciano -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Aug 31
2
lib/* doesn't get reloaded in development
Hi, Am I right in thinking that whatever is in your lib/ folder doesn''t get reloaded on each request in dev mode? Jeroen -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2006 Jul 29
6
why is webrick running in development mode?
Hi, I changed my environmnet.rb to say PRODUCTION mode, however when I start up a server "ruby scripts/server" a) it runs in development mode (via the logs) - any ideas why? b) why does webbrick run - I thought by default now it was supposed to be lightty Tks -- Posted via http://www.ruby-forum.com/.
2006 May 22
1
Model Modules, Dev vs Prod
I have a pretty complex model with many modules and I have been trying to keep it clean, but I find that loading the model in development mode using WebBrick is much more lenient than production mode with lighttpd/fcgi. For instance, if I neglect to create a dedicated file that declares the module then I run everything in development mode it works fine, but as soon as it is deployed I
2006 Jul 26
1
How to reload classes in lib/ without restarting server
Hi all, We have a class extending a class from a plugin. We didn''t know where to put it exactly, but the lib/ folder seemed to make sense. Problem is, it doesn''t reload the file for each request, so it makes development mode difficult (have to restart the webserver with every request). Any advice on how to make it reload? Thanks in advance! Cameron -- Posted via
2008 Feb 12
4
Funny behavior with Fixtures... on Ubuntu..
Hey Guys, I''ve got a test class that loads a bunch of fixtures. My understanding is that fixtures are reloaded between each test... and I even have the following two method calls at the top of my test class to make doubly sure... class TaskTest < Test::Unit::TestCase self.use_transactional_fixtures = true self.use_instantiated_fixtures = false When I run my tests
2006 Feb 28
0
Rails, Webrick, development mode and models
In Firefox 1.5 I find it necessary to stop and start webbrick whenever I add a method to a model class file or else the change is not recognized. I have not tested whether this is required if I simply make a change to an existing model or if this is the case with different browsers. My question is, is this the expected behaviour? JBB -- Posted via http://www.ruby-forum.com/.
2007 Jun 14
2
Rails Development Environment and Reloading Models
Hi, By default, rails reloads all your models, while in development mode, with each new request. Is there anyway to specify that a given model, or models, should not be reloaded? This is specific to rails 1.2.3 Thanks, Steven --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
2019 Jul 10
2
Scope of classes in CFE 3.10.2 on CentOS 7
Hi folks, I have a question concerning scope of classes in CFEngine 3. I run CFE 3.10.2 on CentOS 7.4. # cf-agent -V CFEngine Core 3.10.2 # cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) I'm logged in as root and located in current working dir /root. I have the following file # ll ./samples/scope_of_class.cf -rwx------. 1 root root 720 10. Jul 16:33
2008 Feb 10
2
Mongrel in development mode not reloading classes
Hi there, Even though I am running Mongrel in development mode, I have to manually restart Mongrel to load any changes that I have made to controller or model code. This is the output when I start Mongrel: $ script/server start ./script/../config/boot.rb:29:Warning: require_gem is obsolete. Use gem instead. => Booting Mongrel (use ''script/server webrick'' to force WEBrick)
2005 Mar 02
4
Development without server restart?
I thought that Rails was supposed to allow development of an application *without* having to restart the webserver? I know this works in WEBRick ... but this doesn''t seem to be the case in Apache (linux). Am I missing something here, or does this only work in webrick? I suppose one should argue that for development you should just use webrick, but this wasn''t an option for me
2007 Mar 24
6
Rails Development Log
Hi, I am using Ruby+Rails with Mongrel. Is there any way to disable logging so that everytime I start rails (mongrel_rails start), it doesn''t automatically start logging info to development.log Thanks! -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on
2006 Aug 06
2
Rails logger: how to access it in a my own class
Hey Guys, The only way I could find to access the Rails logger object was to subclass from ApplicationController... can anyone suggest a more sensible way of doing it? Soroe. -- Posted via http://www.ruby-forum.com/.
2011 Sep 21
0
hooking into `to_prepare` in a Railtie *after* the files have been reloaded (in dev)
I''m working on a gem <https://github.com/bradrobertson/apartment> that sets properties on ActiveRecord models (such as table_name) dynamically based on a user config option. I have an initializer that achieves this. My problem however is that in dev mode, these classes are reloaded, so they don''t maintain these values set. So I thought I''d use a railtie to
2006 Apr 04
0
Reload automatic lib after change
Hi all, How can i do to rails take changes in lib module without to have to restarts Webbrick Regards -- ---------------------------------- Luciano Broussal email: luciano.broussal@gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060404/4aebeabc/attachment.html
2006 Jul 07
1
changing workers needs restart?
Hi, Great tool BTW! I have noticed that changing the workers (ie editing them) requires restarting the backrounddb server. Is there a way to improve this for development environments? much like the way rails reloads in development mode without having to stop and restart webbrick? Thanks
2006 Jan 23
1
Do non-AR models reload in development?
When working in development mode, do non-AR models reload? I''m not seeing changes I make reflected in the app unless I restart webrick, so I''m assuming the answer is no. How would get these model objects to reload just as their AR decendant brothers and sisters do? --Ryan
2006 Apr 21
4
WebDAV library for fastcgi/webbrick
Hello, I am trying to find a WebDAV library for Ruby that works with fastcgi (production) and Webbrick (development). I''ve found this link which mentions a Webbrick WebDAV library: http://redhanded.hobix.com/inspect/ webrickWebdavHandlerSafelyExtractedFromTheWild.html Unfortunately it sounds limited to Webbrick which will not suit the production environment. Does anyone know of a
2006 Sep 01
4
evaluating classes within component
I''d like to create a component that takes different actions based on the classes associated with the node using the component. Is this possible? Here''s what I''m thinking. node www01 { include webserver website { "site1.com": aliases => ["www.site1.com", "test.site1.com"], username => www0001 } } node www02 { include
2010 Oct 15
0
AssociationTypeMismatch / Model Caching in development envirnment
Hi there— I''m trying to get started with Rails, and I''ve run into this issue and searched high and low--so hopefully someone can help point me in the right direction. I''m having an issue where my model classes seem to be getting cached by something, and so if I make subsequent requests, I get an AssociationTypeMismatch error. To be specific, on update is where it