Displaying 20 results from an estimated 70000 matches similar to: "Rails keeps caching my class files in /components"
2006 Mar 10
3
Changes to class caching between Rails 0.14.3 and 1.0?
Hi all,
We''re having a rather unique problem with class caching. We are
implementing the strategy pattern in the following manner:
1. Set an accessor for the class, let''s call it :strategy
class Widget
cattr_accessor :strategy
end
2. In environment.rb, we instantiate an object that implements the
strategy and use the accessor to set it for the class
strat =
2006 Mar 22
5
Class Caching Problem [was Newbie Question about Custom Classes]
So any other ideas as to why my custom class under app/models is being
cached even though all the caching is set to false in the
config/environments/* files? Currently I''m having to restart WEBrick
after EVERY change to the file. The controllers and views are
reloading just fine and not being cached. It''s just the custom class
I created that''s being cached.
Any ideas
2007 Jan 29
2
What does Reloadable mean in rails source code?
In the actionpack-1.12.5\lib\action_controller\base.rb,
you can see the definition:
class Base
include Reloadable::Subclasses
...
And following is the definition of Reloadable:
# Classes that include this module will automatically be reloaded
# by the Rails dispatcher when Dependencies.mechanism = :load.
module Reloadable
class << self
def included(base) #nodoc:
raise
2006 May 31
2
Rails Bug when loading required files for API?
Hello,
I have seen some odd behaviour of my Web Services code plus some
''similar'' postings to this list, so I believe this may be a bug in
Rails. But I''m failry new to RoR, so maybe I''m doing something wrong.
I''ll explain:
I have a WS API defined, communicating with a remote system that
expects a stucture:
When defined like this (all
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
2006 Mar 02
3
reloadable classes for other base classes than the built-ins
I''m working on the plugin for RBatis and a new little thing I''m toying
around with called ActiveMessaging (sorry, David I stole the name from
you from the TW AwayDay ;-)). Anyway, in both these applications I
want to be able to have 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
2006 May 01
7
where should I put my hand-coded classes
I have a class that is hand-coded (not generated using generator).
Is there a preferred location for the file.
app/components ?
does it matter?
Thanks,
--
Posted via http://www.ruby-forum.com/.
2005 Dec 21
0
Webrick keeps caching
Hi Rails list,
I''ve just upgraded my Rails install from 0.14 to 1.0.0
I now start the server using this command:
script/server webrick -d
(i''ve tried adding -e development)
But changes in the code won''t show up in the application anymore.
Where should I look to turn off this caching or to actually turn on
development mode?
Thanks.
Gijs Nijholt
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
2016 May 12
2
pjsip module reload problem
Hi!
Installing new asterisk server and decided to use chan_pjsip.
While module reload I get:
y 12 15:33:04] ERROR[21137]: config_options.c:715 aco_process_var: Could
not find option suitable for category '3567' named 'inband_progress' at
line 867 of
[May 12 15:33:04] ERROR[21137]: res_sorcery_config.c:317
sorcery_config_internal_load: Could not create an object of type
2007 May 03
1
Reloadable workers? (Rails Testing without DRb restart?)
Hey guys, I just opened up my first installation of BackgrounDRb and
so far I love it. I''ll have to share this plugin at my next Ruby
Brigade meeting!
I have one question though: Is there a way that I can run the
BackgrounDRb server in a "test" mode that will reload my changes
without having to restart every time? (Similar to how mongrel does
this with my
2015 Apr 01
2
Dovecot keeps creating info files in mail directory instead of home
I've been trying to troubleshoot this for a while now, and I'm really at a
loss.
My userdb is set up correctly to return home, and mail, and a test with
'doveadm user' verifies this:
# doveadm user user at domain
field value
uid 1000
gid 1000
home /var/domain/user
mail maildir:/var/mail/user at domain
I've reloaded, restarted, stopped and started dovecot
2006 May 08
5
Files in LIB folder do not seem to update even in DEV mode!!
Hi
When i change my classes in the LIB folder they are not updating on the
server. My server is in development mode. Any ideas why?
Any help is appreciated
Thanks,
Chris
--
Posted via http://www.ruby-forum.com/.
2009 Jul 28
1
sip realtime with caching
Hi,
I'm using Asterisk 1.4.24.1
Is it possible (and recommended) to have realtime peers that are not cleared
from memory when 'sip reload' is issued?
According to https://issues.asterisk.org/view.php?id=14196 I thought having
rtcachefriends=yes would be enough, but this does't seem to work.
Thanks,
Dan
-------------- next part --------------
An HTML attachment was scrubbed...
2006 Jun 12
1
Restart Rails by plugin development
I write a plugin.
After any changes maked to it I have to :
1) restart WebRick, to load new changes. It is not comfortable
or
2) if I use Apache with CGI. It takes too much time for each request
(about 4-5 sec).
some Ideas?
--
Posted via http://www.ruby-forum.com/.
2006 Jul 18
8
Including files from lib/
I asked about this a few days ago and got no replies, so I''m asking again.
I have a file called string_extensions.rb. In it, I extend the String class
to include some extra functionality. I put this file into the lib/ directory
of my app.
But the changes made to String don''t take effect. The program acts as though
the files aren''t being included.
I''ve stopped
2013 May 09
0
Rails 4.0.0.rc1 - A copy of <class> has been removed from the module tree but is still active!
I upgrade an app from Rails 3.2.13 to Rails 4.0.0.rc1. After the upgrade, I
started getting the error "*A copy of Reference::Base has been removed from
the module tree but is still active!*" whenever a request is sent. This
error occurs only when after making any change (even adding/removing a
comment) to a source file and then sending a request. The error goes away
after restarting
2012 Feb 03
1
rails memoize and reload class => error raised
Hi,
That''s a bit off topic but since I use Spork + Rspec...
Well, my classes are reloaded between each test wave so Rails''
"memoize" method raises an error (which is expected, see code:
http://rubydoc.info/docs/rails/3.0.0/ActiveSupport/Memoizable:memoize)
Anyone resolved this issue with an elegant solution?
2006 Apr 04
1
"uninitialized constant Reloadable" error heads-up
I can''t duplicate this problem on my local machine, but also can''t find any
mentions of it on the Gmane archive, so thought I''d just throw in a quick
mention in case anyone else comes across it.
On Textdrive, using gem rails 1.1, in an app that works fine on my local
machine, I get the following error in my production.log:
"uninitialized constant
2003 Apr 13
1
swat failed login caching?
Ok, so I'm not perfect I mistyped my password when logging into swat for
the first time. Now when I try to reload the login page it immediately
tells me
authorization has failed without providing me a login/password field to
enter my login details.
I can't see any mention of a solution to this in the swat manpage what do I
do now?
Thanks