Displaying 20 results from an estimated 300 matches similar to: "config.cache_classes true or false in test environment?"
2007 Oct 04
0
Weird active record problem - goes away with cache_classes change
I have three active record objects, User, Question and Answer
- Questions belong to a user and has_many answers
- Answer belongs to a user
Now, when I start with an array of answers, I can do this
successfully:
for a in answers
a.user.user_id
end
If I do this:
for q in questions
answers = q.answers
for a in answers
a.user.user_id
end
end
It works the first time, but it fails the
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
2012 Jan 16
0
Rails3 logging issue in development.log
I have a rails3 app, i need to log all into development.log, But when i
check after the execution, the development.log is empty...How to rectify
this problem...
*development.rb*
*
*
ApiMofobi::Application.configure do
# Settings specified here will take precedence over those in
config/application.rb
# In the development environment your application''s code is reloaded on
#
2012 Jul 08
2
How to add a content to an email created with ActionMailer. mail(..,:body) and do |format| either
Hello, I am using ActionMailer and rails 3.0.9 and I want to add a content
to an email that the user has entered but when I write:
mail(...,:body=>"Something") I can''t send the email. I tried mail(....) do
|format|
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
2009 Jun 10
1
[PATCH] remove rails2.3 deprecated config.action_view.cache_template_extensions
---
src/config/environments/development.rb | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/src/config/environments/development.rb b/src/config/environments/development.rb
index b3acf68..9bd4fa6 100644
--- a/src/config/environments/development.rb
+++ b/src/config/environments/development.rb
@@ -33,7 +33,6 @@ config.whiny_nils = true
# Show full error reports and disable
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
2012 Feb 29
2
Fetch Facebook fanpage in rails
Hi,
I am newbie to rails , I need access facebook page information like wall,
subscription,picture etc.
I have apps in rails 3, it has list of artist users he upload songs,
videos within my application, when the public (No Need to Login) can hear
the list of songs,videos. i decide to fetch the facebook/twitter basic
fanpage information and shown to the public in the popups.
i
2012 Jul 06
2
ActionMailer::Base.deliveries returns array with duplicated elements in production env
Hello, I am testing for email sending from my app and I have a scenario
that passes in test env but not in production. When I make dump of
ActionMailer::Base.deliveries I saw that it returns array with duplicated
elements in production env but not in test env. I am using sqlite3 for test
env and mysql for production. Also I use delayed_job. Does anyone had the
same issue? Thanks in advance :)
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:
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
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:
2013 Jun 18
1
Getting rspec error: Net::SMTPServerBusy: Relay access denied
I''m trying to test registration emails (sent with devise), and I keep
getting the error:
Net::SMTPServerBusy: 454 4.7.1 <model_spec-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org>: Relay access denied
I''m running Rails 3.2.11 with Capybara, and I have (temporarily) chopped my
spec_helper.rb and test.rb files down to the bare minimum, still getting
the error above.
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 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
2008 Mar 07
6
creating a model registry
Hi all,
This is a problem I''ve approached so many times and always worked
around, that now I want to solve it once and for all. Say I have
something like this:
---
class X < ActiveRecord::Base
acts_as_wacky
end
module Wackinator
class ControlAllWackos
@@wackos = []
def self.kill_wackos
@@wackos.each(&:kill)
end
end
def acts_as_wacky
2007 Feb 18
2
SerializationTypeMismatch in Production Mode
In production mode, I keep getting this error the 2nd time it loads a
page with 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