similar to: Weird active record problem - goes away with cache_classes change

Displaying 20 results from an estimated 4000 matches similar to: "Weird active record problem - goes away with cache_classes change"

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
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:
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 something to do with
2007 Mar 03
0
config.cache_classes value ignored in development mode under Apache 2
I''m running latest version of RoR under Apache 2 (using 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
2005 Nov 02
1
Windows, Segmentation Faults, config.load_paths and config.cache_classes
I am doing some testing with the rails trunk, version I switched to because of memory leaks in 0.13.1 under linux environment. Right now the application is running fast and steady under linux, with no memory leaks using SCGI Rails Runner 0.4.3 from Zed, BUT it has become unusable under Windows (our main development environment) where I am getting a lot of segmentation faults. BUT the problem
2006 Apr 21
1
Proirty
I want to make a program that will use priorty measures as to which result should show up first. So I know of to make a program that searches for keywords to see if its a repreat question or very simliar. But it should still be awnsered so I have when_was_it_sent on the SQL database, I want it to take both of those into consederation then be able to run it like this... Index - <% for qna
2010 Oct 11
5
Object lost in memory/trashed?
Hi, I''ve got a problem on which I''ve spent many hours, and I can''t get a clue on what is happening... I hope someone here will be able to help me. Here is the situation : my Rails app uses acts_as_commentable and acts_as_bookmarkable on a Diagram model. Everything''s working OK individually: I can create a comment on a Diagram, bookmark it, and so on. Now,
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
2007 Jun 18
0
Problem with belongs_to associations validating associated class: bug in rails in development mode?
Hi all, I''m using rails version 1.2.3. I have the following association in my View class belongs_to :viewer, :class_name => ''User'', :foreign_key => :viewer_id And of course i have a User model class defined to. The problem was that when i tried to use this association it would only work once. At the second try, i would get the following strange error:
2006 Oct 31
0
6430823 shifting the night away, the SEL goes home empty-handed
Author: sethg Repository: /hg/zfs-crypto/gate Revision: f760b35007245e21ef293a575e88c6e30f3b3d5c Log message: 6430823 shifting the night away, the SEL goes home empty-handed Files: update: usr/src/cmd/fm/modules/i86pc/sfx4500-disk/ipmi_plugin.c
2004 Aug 05
1
print spooling message never goes away
I have a Samba server that reports some print jobs "spooling" to the workstations on the network when clients browse it. There are no jobs spooling or printing and it never goes away unless I restart the Samba process. It does come back though and do the same thing. This happens on a few of the 50 queues it's serving. Any ideas? Thanks Greg Samba 3.0.4 Fedora Core 1
2010 Jun 08
1
session_options[:secure] resets session_id on every request
I''m working on an ecommerce site (in Rails 2.3) and I added: ActionController::Base.session_options[:secure] = true to ~/config/environments/production.rb Now, every time I add something to my shopping cart and navigate away I get a new session_id (which essentially empties my shopping cart). How can I get the continuity of my sessions back, while still having the session_id get set
2014 Apr 26
0
jquery_ujs.js 404
I am getting this annoying error which relates to jquery_ujs.js not being served. Any clues? This is the site link: http://test.kopy.com.br/home/index GET http://test.kopy.com.br/assets/jquery_ujs.js?body=1 404 (Not Found) index:11 GET http://ads.panoramtech.net/loader.js?client=tac net::ERR_BLOCKED_BY_CLIENT rev.js:4 Error in event handler for (unknown): Cannot read property 'state' of
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:
2003 Jun 19
4
SMP goes away after installworld (4.8-STABLE)
Hello, I installed 4.8-RELEASE a few weeks ago, and since I let the effort sit stagnant for a while I decided to do the cvsup/buildworld/buildkernel/installkernel/installworld/mergemaster/MAKEDEV steps to get current. Went fine, rebooted, then noticed that just one CPU was recognized: FreeBSD 4.8-STABLE #0: Thu Jun 19 17:05:20 PDT 2003
2006 Jun 14
1
reset_session when Ruby goes down
Hi, In my web application we have implemented the session and it works fine. ie. it prompts for the userid/password when ever we give the URL by opening a new IE window. i.e it goes through the session and see if the :user_id is present in the session if not it prompts to log-in again. But my problem is say if we "kill" the WebRICK abruptly by pressing ^C and say my browser window
2005 Dec 24
8
Prototype OOP example
Hi, Here is what I want to do: Labour = Class.create(); Labour.prototype = { initialize:function(name){ this.name = name; } } What I want to do is create a class called "Worker" which will inherit from "Labour", and the signature of "initialize" is "function(name, position)". May I ask what should do? Thank you all very much for the
2010 Jun 03
5
auth socket goes away on reload
We're using the SQLite backend for authentication of Postfix SASL. When the db is replaced we HUP dovecot to close and reopen its connection. During this time it appears the socket file is removed and Postfix rejects the authentication attempt. From the logs: Jun 3 00:23:02 xxx dovecot: dovecot: SIGHUP received - reloading configuration Jun 3 00:23:02 xxx postfix/smtpd[14746]: warning:
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
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. To post to this