similar to: logging with the daemons gem

Displaying 20 results from an estimated 10000 matches similar to: "logging with the daemons gem"

2008 Feb 28
2
random exception driving me crazy: SecurityError (Insecure: can't modify array)
Hi all, I''m running into a very strange but incredibly annoying problem that I just can''t seem to solve. The exception is occurring from a seemingly innocuous line in my code, a simple ''logger.warn("some debug information")''. The backtrace follows: SecurityError (Insecure: can''t modify array)
2009 May 10
3
Ruby 1.9 problem
What wrong: # rails test /var/lib/gems/1.9.0/gems/activesupport-2.3.2/lib/active_support/core_ext/uri.rb:8:in `<top (required)>'': uninitialized constant URI::Parser (NameError) from /var/lib/gems/1.9.0/gems/activesupport-2.3.2/lib/active_support/core_ext.rb:3:in `require'' from /var/lib/gems/1.9.0/gems/activesupport-2.3.2/lib/active_support/core_ext.rb:3:in `block in
2009 Jun 13
5
undefined method `valid_password?'
I''m trying to set up the authlogic gem for rails, just after logging my user I get this weird error: NoMethodError in Usuari sessionsController#create undefined method `valid_password?'' for #<Usuari:0xb69b9a54> RAILS_ROOT: /home/cocozz/dev/enruscats Application Trace | Framework Trace | Full Trace
2009 Aug 31
7
"Missing these required gems: rspec-rails" in ruby 1.9
i get the above error when running rake. I tried switching rails 2.3.3 with 2.3.2 but it didn''t help. here are my gems: actionmailer (2.3.2) actionpack (2.3.2) activerecord (2.3.2) activeresource (2.3.2) activesupport (2.3.2) builder (2.1.2) cucumber (0.3.98) diff-lcs (1.1.2) hoe (2.3.3) nokogiri (1.3.3) polyglot (0.2.8) rack (1.0.0) rails (2.3.2) rake (0.8.7) rspec (1.2.8) rspec-rails
2009 Jun 04
1
wrong number of arguments (1 for 0)
Hi, I hope someone can help me because this is driving me crazy, I''ve spent hours trying to track this down. I''m trying to convert a Rails 1.1 to Rails 2.3.2 and I''m getting the following error when trying to save a many to many relationship. I''ve double checked all the associations, I''ve used console to test my models and they all work ok, I can do
2009 Jun 17
2
validates_uniqueness_of fails on STI in Rails 2.3.2
I''ve got something like this: class Position < ActiveRecord::Base end class CartItem < Position validates_uniqueness_of :product_id end When I try to save CartItem I get this error: ArgumentError: wrong number of arguments (1 for 2) from /home/joaz/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/validations.rb:758:in `exists?'' from
2009 Jun 13
2
Rake migration error
Hi, I am constantly getting an error when I use the rake command to do a migration or even use drop, this happened after I installed some plugins such as paperclip and seed-fu. The error is: rake aborted! uninitialized constant PKG_NAME /var/www/html/quote/Rakefile:10 The Rakefile looks like this: # Add your own tasks in files placed in lib/tasks ending in .rake, # for example
2009 Jun 24
3
I18N: allocator undefined for Proc
Hello all, I''m trying to translate my application using the I18N feature and it was working fine until I added a couple of new entries to the en.yml files. Now in every action in my application I always get the following error: TypeError in Account#login Showing app/views/account/login.rhtml where line #2 raised: allocator undefined for Proc Extracted source (around line #2): 1: 2:
2009 Jun 29
2
Cannot Run Ruby on Rails on windows Vista or 7
Hi There, I have installed ruby on rails on a windows 7 box as mentioned on the official ror manual and it works perfectly for some times. but when I refresh web browser page few times I got this error and now nothing is working on my pc. here is the error I get when i try to start the server now. does anyone has experienced this before? C:\Users\Randika\emktplcusers>ruby script\server =>
2009 Jun 04
0
Error with Rails.logger: closed stream (IOError)
Hi all. I am creating a plugin that uses the daemons gem to run some code in the background. In that code, I call Rails.logger.info "message", but receive the following error. /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/buffered_logger.rb:99:in `write'': closed stream (IOError) Anyone seen this before and have any idea what''s going on?
2009 Apr 30
1
Plese have a look on this error and tell me y it comes
Drive\Ruby Projects\ramf>ruby script/generate model category by/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:440:in `load_missing_constant initialized constant RAMF::OperationProcessorsManager (NameError) from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:80:in `const_mis from E:/D Drive/Ruby
2009 Apr 06
3
After Rails 2.3.2 upgrade: superclass mismatch for class TestCase (TypeError)
I upgraded a working app from rails 2.1 to 2.3.2. Now when I run rake test:units I get this error: /usr/lib/ruby/gems/1.8/gems/ activesupport-2.3.2/lib/active_support/test_case.rb:17: superclass mismatch for class TestCase (TypeError) I generated a new test app and all tests run OK. For the upgrade I ran rake:update and renamed the class in test_helper to ActiveSupport::TestCase. Also renamed
2009 Apr 23
2
BackgrounDRb start error
Hi, I''ve got a Rails 2.2.2 app and I''m trying to get BackgrounDRb running. I''m just following the simple example in Advanced Rails Recipes. I installed BackgrounDRb from Git, installed the packet and chronic gems, ran ''rake backgroundrb:setup'', generated a worker, and then tried to run ''script/backgroundrb start'' but I get:
2009 Jul 12
1
`require_frameworks': no such file to load -- openssl
I''m getting this error on Ubuntu 9.04 when trying to run this simple Rails application. How to solve this error? *** LOCAL GEMS *** actionmailer (2.3.2) actionpack (2.3.2) activerecord (2.3.2) activeresource (2.3.2) activesupport (2.3.2) mysql (2.7) rails (2.3.2) rake (0.8.7) Error : => Booting WEBrick => Rails 2.3.2 application starting on http://0.0.0.0:3000
2009 Jun 30
2
First time problem
This is the first time I am Running ruby on rails. When running the "blog" application I got the message "We''re sorry, but something went wrong. We''ve been notified about this issue and we''ll take a look at it shortly." Then I checked the CODE\blog\log\development.log and got this:
2009 Apr 15
1
uninitialized constant ActiveSupport::Dependencies::Mutex (NameError)
I''m on debian etch w/ ruby1.8, activesupport-2.3.2, getting this on the first line of code which is require ''active_support'' : /var/lib/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:55: uninitialized constant ActiveSupport::Dependencies::Mutex (NameError) from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require''
2009 Jul 17
1
Mongrel Server error - newbie question.
Dear All, I am very new to RoR. I have got the following error after Chnaging mysql database.yml and restart the Server. - rails employee rails -d mysql employee and insert Username & Password in the database.yml and I restart the server. - => Booting Mongrel => Rails 2.3.2 application starting on http://0.0.0.0:3000 /usr/local/lib/ruby/1.8/yaml.rb:133:in `load'': syntax
2009 Apr 22
3
Error on running any controller- Noob question
Hi , I am running on Vista with webrick ... When I generate controllers , models and views I get an error as under. C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/ dependencies.rb:105:in `const_missing'' C:/ROR_lpapp042109/app/controllers/afflnetworks_controller.rb:5:in `index'' I tried reinstalling but kept stumbling on this. gem -v 1.3.2 rails -v 2.3.2
2009 May 29
1
Book Shelf app in 'Ruby on Rails Bible' book
I''m trying to follow through with the Book Shelf app that''s in the ''Ruby on Rails Bible'' book and I''m at a point where I''m trying to install Ruby/Amazon. I downloaded the Ruby/Amazon and extracted it as instructed. Now I''m at the step where I need to drop into a Ruby console to verify the Ruby/Amazon installation. In the console I
2009 Oct 13
2
Single Table Inheritance (STI) Broken: NameError
Some how I''m getting NameError: uninitialized constant when accessing a child models that inherits form the parent model. However, if I access the parent model first, then the child model is resolved. What am I doing wrong? My steps are below... Thanks, Francis. > ./script/generate model Blah type:string class CreateBlahs < ActiveRecord::Migration def self.up create_table