similar to: ActionMailer in an infinite loop? Looks like framework bug.

Displaying 20 results from an estimated 400 matches similar to: "ActionMailer in an infinite loop? Looks like framework bug."

2008 Jan 19
0
[CruiseControl] RubyOnRails build 8671 failed
The build failed. CHANGES ------- Revision 8671 committed by bitsweat on 2008-01-19 03:45:24 Support aggregations in finder conditions. Closes #10572. M /trunk/activerecord/test/cases/finder_test.rb M /trunk/activerecord/CHANGELOG M /trunk/activerecord/lib/active_record/aggregations.rb M /trunk/activerecord/lib/active_record/base.rb TEST FAILURES AND ERRORS -----------------------
2006 Jul 14
14
[URGENT] Need help getting rails app back up desperately
I''m desperate. A few hours ago I was checking my server because we are running a survey for a new client and everything looked good for that app but I noticed another Rails app was quite large (twice as normal) so I decided it was time for a restart. Big mistake. Upon restart the application gave me a 500 error. Checking the logs I found a stack level too deep error that after hours I
2005 Dec 20
0
ArgumentError in Main#index, weirdness.
Hello, I am very new to ruby on rails so any help would be greatly appreciated, sorry if I don''t include enough useful information as I am unsure what will be needed to help with this error. I am using ruby 1.8.3 on debian "testing" along with lightttpd and fastcgi. I have a controller called "main" as you can see in the error output, and when trying to load the
2006 Mar 12
1
alias_method interferes ApplicationHelper
Hello, I''m using Ruby 1.8.4 (darwinport), rails-1.0.0 (gem) , Powerbook / Mac OS X 10.4.5 , Webrick. How come Rails always raises NoMethodError for my helper (must_fill and rp or number_to_currency_rp) in application_helper.rb ? I doubt that alias_method is the culprit, but if i give # comment then there will be no errors at all ... :/ what am i doing wrong? is it a bug or stupid me? Thx
2006 Jan 10
0
Error: "wrong number of arguments" in initialize_template_class
Hello all, I am being hunted down by this error. When it starts, it happens on every URL: wrong number of arguments (3 for 0) ----------------------- Stack trace ------------------- D:/software/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:825:in `initialize''
2006 Jun 08
1
Test errors
I''m working on learning user auth and ran a test/unit/test.rb and seem to have stumbled across some errors. This is from a tutorial on the web and I pretty much copied the code and checked syntax so not sure where it''s wrong. I thought I''d throw it out since I"m new to ROR and the error didn''t look too bad ;), perhaps someone would have a better
2006 Mar 12
1
a better way to alias methods
Hi is there a better way to accomplish this task? class PortfolioController < ProjectController layout ''portfolio'' def boing redirect_to :action=>:index end alias_method :new , :boing alias_method :destroy , :boing alias_method :edit , :boing alias_method :update , :boing end My portfolio controller implements view only
2005 Sep 17
0
Reloading and redefining methods: infinite recursion
When I redefine a method like this class Klass alias_method :method_without_addition, :method def method_with_addition ... method_without_addition ... end alias_method :method, :method_with_addition end I get into trouble in the development environment. As these definitions are executed again for each request, the second time around method_without_addition is actually the
2008 Jan 18
2
NameError when using alias_method -- but method exists?
Hello Rubyists, I am a bit stumped here. I want to extend the ''load_file'' method in the YAML module. Following along with the PickAxe example of making old methods do new things, I try this in irb: >> module YAML >> alias_method :orig_load_f, :load_file >> def load_file(*args) >> contents = orig_load_f(*args) >>
2007 Feb 26
2
undefined method ... from `alias_method'
0 wicked var/www % ./script/console Loading development environment. >> r = Recipe.find :first NameError: undefined method `recipe_type='' for class `Recipe'' from ./script/../config/../config/../app/models/recipe.rb: 101:in `alias_method'' In recipes_controller: alias_method :orig_recipe_type=, :recipe_type= def recipe_type=(t) if t.nil?
2006 Feb 01
7
Explanation of "alias_method"
Hi! I''m trying to extend ActiveRecord''s find method (Rails 1.0, Ruby 1.8.2), but I recognize a strange behaviour of the "alias_method" call. I wrote a very simple script to explain my problem: ------------------------------------------------------ module ActiveRecordExtension def self.included(base) base.extend(ClassMethods) base.class_eval do
2006 Aug 16
3
AR: column methods?
In a model, it seems that methods for column access are only created when one column method on an object is accessed. So, how can one override the default column methods? For instance: create_table "dogs", :force => true do |t| t.column "color", :string end create_table "tails", :force => true do |t| t.column "dog_id", :integer,
2005 Oct 21
1
initialize in helpers
Hi, I have just upgraded to the latest version of rails and zero arg initializers in helpers stopped working. ie I previously had something like module CheeseHelper def initialize ... init some vars etc ... end end class GobbleController < ApplicationController helper :cheese end But this will generate an exception down in the guts of the framework because something has a 3-arg initialize
2009 Sep 23
5
Overriding AR read/write_attribute - Overridden write_attribute Is Never Called
Could someone explain this? #config/initializers/ar_attributes.rb module ActiveRecord module AttributeMethods alias_method :ar_read_attribute, :read_attribute def read_attribute(attr_name) p "read_override" ar_read_attribute(attr_name) end alias_method :ar_write_attribute, :write_attribute def write_attribute(attr_name, value)
2008 Jun 14
0
does BackgrounDRB not "know" the rails environment it is running within/in parallel with?]
Hi, it probably is a noob question but I''m confused by this error message: active_support/dependencies.rb:478:in `const_missing'': uninitialized constant Invoice::ApplicationController Situation: I have an InvoicesController with a create method that in turn calls upon a MiddleMan.worker(:billing_worker), which in turn finds an Invoice and calls upon @invoice.print_invoice
2006 Sep 20
0
boy, that mongrel_upload_progress handler sucks!
I started actually using the upload progress handler, and noticed it was leaking memory over time. Looking at the code, I noticed that cancelled uploads weren''t being cleaned up. I bugged Zed about adding a request_abort callback to handlers, but I found a simple way to monkey patch that in: # config/mongrel_upload_progress.conf # yes, this file is being used with -S meaning
2006 Jul 04
1
How to override ActiveRecord#base#destroy
Hello, I have a database table with a primary key not being a simple id but three columns. By overriding update() and create() I got Rails to work with that table quit good. Except for the destroy() action. From the resulting trace I can see that the old version of destroy() is called from transaction.rb. I think this lines might be the reason that I''m unable to override detroy():
2006 Feb 28
0
ActiveRecord: Legacy primary keys
Hi, I''m building a frontend for a legacy schema, with tables like this: CREATE TABLE `types` ( `a_type_cd` varchar(6) NOT NULL default '''', `a_type` varchar(30) NOT NULL default '''', PRIMARY KEY (`a_type_cd`) ); The primary key is specified by the user (not auto-generated), and needs to be updateable. I create the following a base class to
2005 Aug 08
0
Fwd: help me override ActiveRecord find?
I''m sorry -- sent this to the wrong list. ---------- Forwarded message ---------- From: Kelly Felkins <kelly.felkins-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Date: Aug 8, 2005 9:37 AM Subject: help me override ActiveRecord find? To: ruby-talk-X+L+6nJQZ58h9ZMKESR00Q@public.gmane.org I would like to add some things to the find method of activerecord, but I can''t figure out
2010 Jan 16
0
Extending instance-methods of an Module for Plugin-Development
Don''t know if i should write this to rails or ruby mailinglist. But in the case i wan''t to extend the facebooker-plugin without touching it, i will here. 1. Instance-Methods of modules? The methods in a module may be instance methods or module methods. Instance methods appear as methods in a class when the module is included, module methods do not. Conversely, module methods may