search for: cache_class

Displaying 20 results from an estimated 58 matches for "cache_class".

2012 Jun 27
0
config.cache_classes true or false in test environment?
Hello, since two days I have problem with a scenario that started to fails with the error that there is a missing link. I narrowed the problem to config/environments/test.rb and config.cache_classes and I change the value now the scenario is passing with config.cache_classes = true. Here is my full test.rb: RbpCm::Application.configure do config.action_mailer.default_url_options = { :host => PATH_TO_USE } config.action_mailer.delivery_method = :test config.cache_cl...
2007 Oct 04
0
Weird active record problem - goes away with cache_classes change
...</span> 47: </div> 48: <div class="very- narrow-space">&nbsp</div> However, this is fixed IF I change development.rb and change cache_classes to true config.cache_classes = true I have no clue what is happening :(. Any one knows how to fix this? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group...
2007 Mar 03
0
config.cache_classes value ignored in development mode under Apache 2
...a virtual host), if I change the environment config within the virtual host (SetEnv RAILS_ENV development) then it changes environment as expected. However when I''m working with views and not the model I would like have RoR cache the model files, I have tried changing the value of config.cache_classes to true in the config/environment/development.rb file but that doesn''t seem to make any difference. I''ve not tried WEBrick or anything else, I just jumped straight into Apache 2 as that is how it will be deployed on the live servers. Any ideas why this isn''t working?...
2012 Mar 20
0
Setting cache_classes to false results in blank pages
Have anyone else stumbled upon this weird behavior? Setting the config.cache_classes = false for development env causes rails to return responses with totally empty content, headers seem to work ok. It does not matter what the controller returns, even a simple :text => "OK" will result in empty page. I''m using rails 3.2.2 and ruby 1.9.3. It probably has so...
2008 Sep 03
1
edge rails config.cache_classes = true breaks applications
when using current edge rails, i am getting trouble when using the production environment -- i tracked down the problem to the following line config.cache_classes = true if i disable the class caching, everything works just fine, when enabling the cache_classes, lots of errors get dropped -- see the output below: error #1: /Users/zecko/GIT/myapp/vendor/rails/activerecord/lib/active_record/base.rb:1742:in `method_missing_without_paginate'': unde...
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: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060331/a47a024c/attachment.html
2005 Nov 02
1
Windows, Segmentation Faults, config.load_paths and config.cache_classes
..._ROOT}/vendor/feedtools/lib #{RAILS_ROOT}/vendor/uuidtools/lib ) As Rails can''t find these libraries, it generates a "uninitialized constant Blog" wich is the first Model it tries to load. We got rid of this problem setting config.cache_classes = false in the environment.rb, but then came the problem with the segmentation faults as I am describing below: SCGI 0.4.3 under Windows 2k =========================== At first request I got the "uninitialized constant Blog" mentioned above Subsequent requests are handled ok, until...
2010 May 10
0
config.cache_classes = false is broken in 2.3.4 and 2.3.5
I have created a ticket with a simple description of how to reproduce. https://rails.lighthouseapp.com/projects/8994/tickets/4565 Jarl -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to
2006 Apr 13
5
Changing class data in environmrnt.rb
...The problem is in development mode, the values are only there for the first request after launching webrick. After the first request the entries have dissapeared form the class. In development mode the changes persist and are around for any number of requests. Specifically it seems to be the cache_class setting. It seems the class is destroyed and recreated when not cached for each request, although environment.rb is only run the first time. I modeled this solution off of various rails settings, like: ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS.merge!({:date => ''...
2010 Jun 02
10
Session, memory_store & NoMethodError
Hy everybody, first, excuse me for my english, I''m french (sorry for that :D). My actual problem is that I encountered a [b]NoMethodError[/b] when I tried to access to a session value that is not nil. I''m doing some ajax calls and I afffect the key/value and access to session variable in the same controler "injection_controller.rb". I also access to session in a view
2006 Mar 02
3
What am I missing?? Activerecord & Sessions!!
Can someone please explain why every time that I call an action in my controller, every model that is stored in the session needs to be interpreted by a database query? If I have four models stored in the session, I end up with five long "SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull FROM pg_attribute a LEFT JOIN pg_attrdef d....." queries when *ANY*
2007 Feb 18
2
SerializationTypeMismatch in Production Mode
...th a serialized attribute: ActiveRecord::SerializationTypeMismatch (answers_container was supposed to be a Array, but was a NilClass): /vendor/rails/activerecord/lib/active_record/base.rb:1964:in `unserialize_attribute'' In development, it works fine. In fact, if I set to false config.cache_classes in production.rb, it works fine. The first time you hit the page, it works fine. Upon refresh, it returns that error. This happens with both webbrick and litespeed. The controller code is: def new store_location if request.env["HTTP_REFERER"] params[:my_id] = "sur...
2006 Feb 20
3
Caching of classes non working or Howto?
...<b1>Going home</b1> <p> Time was <%= @time %> </p> </body> </html> It works without error. But in goodbye @time is always nil, empty, and it doesnt matter if I play around with config/environments/development.rb and change config.cache_classes from false to true and back, nor if I run ruby script/server -c which should cache the classes. In my understanding so far, @time in the goodbye method should be the living alive instance variable of my living view controller, right? It is living beyond the lifetime of the single request?! S...
2009 Mar 05
7
issue with the object cache
Hi, I am getting a method_missing error when I run my application in the production environment unless I set config.cache_classes = false in config/environments/production.rb. This happens in Rails 2.2.2 but not in Rails 2.1.0. The method that is missing is one I used to have before I edited by hand the migration that creates the table associated with the object (I know you are discouraged to do this, but I had started with...
2006 Jul 28
1
Dev and production modes
Hi, I''m developing a Rails app and I''ve seen observed a different behaviours and results when I run it in dev or in production mode. Could you please indicate some pointers to a list of differences in environment and things that could change between development and production mode? thank you. -- Posted via http://www.ruby-forum.com/.
2007 Jun 18
0
Problem with belongs_to associations validating associated class: bug in rails in development mode?
...k once. At the second try, i would get the following strange error: ActiveRecord::AssociationTypeMismatch : User expected, got User On a call to: my_view.viewer = my_user After a little investigation i found that the problem was related to this option in the environments/development.rb config.cache_classes = false If I changed this option to true, everything would work ok. The problem is that the associated proxy is caching the associated class, and if the previous option is set to false on the second request, the User.class.id will be different from the cached user class object resulting that the...
2008 Jul 20
1
Caching controller code in development
I am running Rails 2.1.0 on an XP box. In development I have config.cache_classes = false. But...when I mod my controller code it does not pick up the change. This happens in Webrick and Mongrel (1.1.5) Ideas? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group....
2009 Apr 23
1
Constants defined in initializer not found when running gems:install in test
Dear all, I am setting some constants in an initializer, which are used in validations in my models. When I run RAILS_ENV=test rake gems:install I get missing constant errors for these, but not when I run RAILS_ENV=development rake gems:install It only happens for the gems:install task in test. Everything else (e.g. rake test) works as expected. What could be the problem? Thanks for your
2006 Aug 01
2
Same <img> is still downloaded for several times in IE
Last time i ask the same question here that if one article item has a default icon in front of its title,the icon will be downloaded as many times as the article items displayed in one page in IE. I was suggested to modify some options under development enviroment,eg: config.cache_classes and config.action_controller.perform_caching in development.rb are both set to true.But the problem still exist under IE while not in firefox, Are more options needed to be set to fix it? One of my page have about 250 items each of which has a default icon,which means that a little icon will b...
2010 Jun 08
1
session_options[:secure] resets session_id on every request
...39;ve attached my ~/config/environment.rb and here is my ~/config/environments/production.rb # Settings specified here will take precedence over those in config/environment.rb # The production environment is meant for finished, "live" apps. # Code is not reloaded between requests config.cache_classes = true # Use a different logger for distributed setups # config.logger = SyslogLogger.new # Full error reports are disabled and caching is turned on config.action_controller.consider_all_requests_local = false config.action_controller.perform_caching = true # Enable serving of imag...