similar to: edge rails config.cache_classes = true breaks applications

Displaying 20 results from an estimated 2000 matches similar to: "edge rails config.cache_classes = true breaks applications"

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
2009 Nov 17
5
has_many :through and foo.bars.include?
hallo everybody, i already googled the following problem, but there are so many questions regarding "has_many :through", that i just couldn''t find what i was looking for. so, i''m really sorry if this has been asked before. if so, just drop me the link. i have a has_many :through relationship similar to the following example: class Group < ActiveRecord::Base
2008 Oct 02
1
acts_as_taggable_on environment issues
Like most people, I''ve got two machines: one for development and one for production. I''ve done everything I can to make sure the ruby/rails environments are the same, but of course they''re not identical (I''ll get into that in a moment). The error that I''m getting happens when I call a method in a background task controller on the production machine; I
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 Mar 04
0
Help with RailRoad
When I run this code I don''t hace any problem: railroad -a -i -o full_models.dot -C But if run this code: railroad -a -i -o full_models.dot -M I get this: /Users/juan/Desktop/dticket_4_03_08/vendor/rails/activerecord/lib/active_record/base.rb:1532:in `method_missing_without_paginate'': undefined method `_'' for #<Class:0x251965c> (NoMethodError) from
2010 Mar 01
0
undefined method for Polymorphic association using Searchlogic
I am unable to call a polymorphic scope using the searchlogic plugin as it keeps on returning ''undefined method''. I am certain it is only a problem within my project as I created a test project and I was able to call a polymorphic scope using the searchlogic plugin. I am hoping someone can provide a suggestion on how to debug this issue. My project consists of several gems, and
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
2008 Sep 18
1
user_observer (restful_authentication) causes failure in loading rails
I have restful_authentication in use on an app and it has been working fine, but I recently was changing the account creation flow and needed to enable the UserObserver. I did so by including it in the environment.rb (config.active_record.observers = :user_observer) and Rails wouldn''t start. I got the following error; source/communitysites/vendor/rails/activerecord/lib/active_record/
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
2011 Jan 13
5
undefined method `xss_terminate'
I''m trying to run a rails app developed by my firm on my Ubuntu machine. I''m using RVM with what I think are all the appropriate gems installed. The application works fine on co-workers OSX machines. When running db:migrate I get the following error: $ rake db:migrate --trace ... rake aborted! An error has occurred, all later migrations canceled: undefined method
2011 May 14
0
Undefined method `has_attached_file' with paperclip 2.3.8 gem for Rails 2 using Ruby 1.8.7
Hello, I am trying to use the paperclip plugin in my rails app to upload images for posts. I am using Rails 2.0.2 and ruby 1.8.7 on Ubuntu 10.04 os for project specific purposes. I am referring to the following tutorials for this :- 1. http://railscasts.com/episodes/134-paperclip?view=comments 2. http://jimneath.org/2008/04/17/paperclip-attaching-files-in-rails.html I did a git clone on the
2012 Oct 16
5
`method_missing_without_paginate': undefined method `class_attribute' for ActiveRecord::Base:Class
hi i am using radiant 0.8.2 , rails 2.3.4, ruby 1.8.7 and rubygems 1.4.2. and i can''t able to run my existing application. error occurred : run command for server "script/server -e production -p 3001" error: => Booting WEBrick => Rails 2.3.4 application starting on http://0.0.0.0:3001 config.gem: Unpacked gem rack-rewrite-1.2.1 in vendor/gems has no specification
2010 Mar 13
0
Authlogic -> Production Server
Sorry if this is a repost. I never received a successful post msg. So this is my first deployment. I''ve used Capistrano and Git. CPanel to install all the gems (with some added server support for additional gems). CPanel is used to start/stop the app. In development mode the app starts and runs into a db problem (expected I never copied the sqlite3 db). But it starts. In production mode
2011 Jan 15
0
edge rails 3.1beta
Hi all, I just decided to switch to edge rails. So, I added the following gem ''rails'', :git => ''git://github.com/rails/rails.git'' gem "rack", :git => "git://github.com/rack/rack.git" to my Gemfile. As soon as I tried to run my app, one of my controllers throw this error: ActionView::Template::Error (undefined method `[]''
2009 Feb 21
3
Help w/ rake db:migrate error
I made a few changes to my migration files, dropped all tables (rake db:drop:all), and when I went to re-create everything (rake db:migrate), I get this: rake db:migrate --trace (in /Users/Eric/Development/Work/Rails/pcod) ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment rake aborted! undefined method `random'' for Tidbit(Table doesn''t
2009 Mar 24
12
MonkeyPatching ActiveRecord::Base class
I am trying to monkey-patch the ActiveRecord::Base class to incorporate a generic search class method so that it can be used by all model classes which need this functionality. Since model classes directly inherit from ActiveRecord::Base and unlike controllers and helpers, do not have an ancestor class defined, I think I am forced to open the ActiveRecord::Base class and patch it? May be I am
2009 Mar 15
3
Capistrano deploy errors
Hi, when I do cap deploy:cold I get this error: rake aborted! undefined local variable or method `acts_as_commentable'' for #<Class: 0x7fa1c34a2f10> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/ base.rb:1833:in `method_missing_without_paginate'' /usr/local/lib/ruby/gems/1.8/gems/mislav-will_paginate-2.3.8/lib/ will_paginate/finder.rb:170:in
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 09
0
how to rename a method of a module.
I''m using the gem bootstrap-will_paginate and inside this gem there is the initializer: require ''will_paginate/view_helpers/action_view'' module WillPaginate module ActionView def will_paginate(collection = nil, options = {}) options, collection = collection, nil if collection.is_a? Hash # Taken from original will_paginate code to handle if the helper is