similar to: delayed_job - Undefined method error even with Mongrel

Displaying 20 results from an estimated 20000 matches similar to: "delayed_job - Undefined method error even with Mongrel"

2010 Dec 11
0
Rails 3 - Delayed_Job (collectiveidea), trying to Delay Mailers - Error: NoMethodError (undefined method `delay' for UserMailer:Class):
Hello, I have the following in an observer: UserMailer.delay.msg_notification(record) In user_mailer.rb class UserMailer < ActionMailer::Base ... def msg_notification(record) mail( :to => "#{record.user.email}", :subject => "Notification" ) end .. end But this errors with: NoMethodError (undefined method `delay'' for
2010 Aug 02
0
delayed)_job gem installation issue
here is my environment.rb config.gem ''collectiveidea-delayed_job'', :source => ''http:// gems.github.com'' >>gem list | grep coll collectiveidea-delayed_job (1.8.2) The gem infact got installed via rake gems:install. but now when I start my app, it doesn''t recognize the gem being installed. Please help. script/generate delayed_job
2011 May 25
0
indentify delayed_job with display_name
Hi, I just found this solution for identifying a job in the job table: http://stackoverflow.com/questions/3638250/how-to-cancel-scheduled-job-with-delayed-job-in-rails They are using this code: class MyJob < Struct.new(:user_id); def perform # ... end def display_name return "MyJob-User-#{user_id}" end end # store reference to a User my_job =
2011 Apr 10
0
Delayed_job: how to raise and log exceptions
I have this in a delayed job. def perform begin validation_warnings = Account.global_import_legacy_accounts(billing_run.legacy_master_iif_csv.path) rescue Exception => e BackgroundProcessStatus.update(:status => "Process failed. Error: #{e}.") end end I am finding that if an exception ocurrs somewhere in the code which is being called (i.e. somewhere in
2006 May 25
0
ActiveRecord Base, undefined method in mongrel but works in webbrick
Hey all, I have a problem where for one class in my web application, any of the methods inherited from activeRecord Base do not work using Mongrel, but everything works perfectly using webbrick. Any pointers would be great since I''m rather befuddled. Also, if more information is needed to help figure this out just let me know. thanks, Sean Here are two example error messages: Example
2011 May 17
1
uninitialized constant Delayed::Job (NameError)
hi I am implementing delayed_job in my rails app. *my code is:* file name is: my_worker.rb require "delayed_job" require "rubygems" class MyClass def perform while true do puts "I am in My class!!!" sleep 2 end end end Delayed::Job.enqueue( MyClass.new ) #m.perform when i am executing this(ruby my_worker.rb ) file it gives me error
2009 Nov 26
1
Can the http response and the controller/action finish be separated?
Hi all, I have a situation where a very simple request can trigger a time- consuming operation, but the requesting page doesn''t need the result of the lengthy computation. In the standard controller action of handling the http request, it appears that ack''ing the request is closely coupled with completing the request. Can this be altered in order to separate these two actions
2007 Apr 05
1
My mongrel keeps shutting down
I''m on a VPS running CentOS. I startup my server with: mongrel_rails start -d -p 3000 -e production and it runs for a while. But later I receive ''502 Bad Gateway'' errors implying my mongrel has crapped out. So in the console I do this: [prompt]# mongrel_rails start -d -p 3000 -e production ** !!! PID file log/mongrel.pid already exists. Mongrel could be running
2007 Feb 08
1
undefined method `find' for Status:Class
Hi, I have attempted to install radiant on my server using mongrel. I have it working fine using lighttpd on my development box, but as soon as i attempt to run it using mongrel I get the following error: NoMethodError (undefined method `find'' for Status:Class): /app/models/page.rb:49:in `status'' /app/models/page.rb:57:in `published?''
2008 Jan 24
1
NoMethodError (undefined method `to_sym' for {"6"=>"1"}:Hash
I''ve got a search form that was working on rails 1.2.6, but since upgrading to 2.0.2, I''m getting this error when I post my form. Here''s the full error: Processing SearchController#results (for 24.173.26.226 at 2008-01-24 14:51:23) [GET] Session ID:
2007 Sep 18
1
Mongrel Upload Progress progress method returns Content-Length: 0
Running into a strange bug using the mongrel upload progress plugin handler, sitting in front of a simple mongrel. The bug appears on an old Xserve (mac OS X 10.3.9 powerpc), but not on my macbook pro, or even a generic 686 linux box. http://pastie.textmate.org/98341 The gist of the pastie above shows that attempts through the browser and curl are actually hitting the filesController, as
2013 Nov 22
4
Delayed JOB ISSUE
Hi all I am using delayed jobs to send sms I am using "http://github.com/tobi/delayed_job/tree/master". In my other website my delayed job is working fine. Recently I have took one new domain in the same server which I have my other app''s which are working fine. Now the issue is after taking new domain and running the old app with new domain delayed job is not working
2011 Mar 16
0
Making Mongrel/WEBRick serve static assets with future expires header
I''m creating a Rails application which will be deployed to desktop machines, running both the webserver and the browser (it''s a test- taking application which needs to be able to run without an internet connection). For this reason, I''ll be running Mongrel or WEBRick, without an Apache/ Nginx in front of it as you would normally do. The browser will access the Mongrel
2009 Sep 25
3
NoMethodError : undefined method `stringify_keys!' for "2":String
Hi, I have been trying to create a small Rails application. In one of the steps, I am facing this error as "NoMethodError in ContactController#update ...... undefined method `stringify_keys!'' for "2":String". Let me give a brief description of the application. This application is to Create, View and Update contacts. The problem came when updating a record.
2008 Jun 10
7
ActionMailer undefined method `parameters' - Rails 2.1
Hello Rubyists, I''m currently trying to get email hooked up via ActionMailer, and while I''ve gotten it to work in the past on Rails 1.2.x, I''m seeing an error that I''m unfamiliar with. Right now, I''m just trying to send email from my dev box via the SMTP server at work. My development.rb file: #...snip config.action_mailer.delivery_method = :smtp
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
2006 Dec 20
4
undefined method `fullname' for #<User:0x357e380>, BUT works on first view?
Hi all, Please excuse the long post, but I wanted to make sure you have all the information.... I have a NewsModel that looks like this: class News < ActiveRecord::Base belongs_to :user validates_associated :user validates_length_of :title, :description, :minimum => 5, :allow_nil => false acts_as_commentable acts_as_taggable def self.find_recent News.find(:all,
2009 Aug 29
1
Delayed_Jobs Failed: Where to Check Logs/Errors?
I am using delayed_job. It generally works but on one method I am calling the job always fails. I checked my rails logs and that does not show anything. The action is simply completed. Are there logs or someway to check details on what is happening with delayed_jobs? I know when I send it normally/synchronously, it completes successful. However, when I use delayed_jobs, it fails. Code Sample:
2008 Jun 02
3
Undefined method `store_full_sti_class=' for ActiveRecord::Base:Class (NoMethodError)
Hi everyone, I created a new demo app with ''rails demo'' and proceeded to try and launch the server with ''ruby scripts/server''. I get the following stack: C:\railsProj\demo>ruby script/server => Booting Mongrel (use ''script/server webrick'' to force WEBrick) => Rails application starting on http://0.0.0.0:3000 => Call with -d to
2007 Jan 04
1
Mongrel/Rails weird problem with methods becoming private
Hi, I''m new to this list, so apologies if this is a duplicate (or nothing to do with mongrel!) Somehow when I run my rails app under mongrel, this code: > user.interests.include?( interest ) breaks with the following error: > NoMethodError in Profiles#change_interests > private method `equal?'' called for #<Interest:0xb767ae8c> Having spent a fair bit of time