search for: save_without_dirti

Displaying 14 results from an estimated 14 matches for "save_without_dirti".

Did you mean: save_without_dirty
2011 Dec 01
5
Validation failed: Host already has a report for time and kind
Howdy, I''ve been getting this issue for about a month in dashboard. All our nodes poll on a cronjob between 00:00 and 01:00 daily, but one node has been getting this as a failed task for a while, with the yaml files building up on the server. Outside of this one cronjob, other puppet runs on the same node are running just fine. The backtrace on dashboard is: Importing report
2009 Feb 21
2
ArgumentError on model create statement
I have a rails app model that I''m getting a strange error that is just baffling me. I''ve stripped everything out of my model down to the basics and still get the error. So, here is the current model: class Metric < ActiveRecord::Base end When I go into the console, and issue a simple "Metric.create" command I get the following error: >> Metric.create
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
2008 Dec 20
9
Upgrade to Rails 2 - problem with "save" (MySQL boolean issue?)
I have been working through an upgrade of my 1.2.6 application to 2.2.2. I am almost there but I have hit a problem with ActiveRecord. Before the upgrade, the following code was working fine. def create_root(administrator) root = create_root_collection(self.pingee_name, administrator,
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
2013 Oct 18
0
Dashboard failed tasks
Hey All, I see that a number of Admins have experienced this same issue, but no one has posted a workable solution. I have about 200 agents, but on any given day I''ll see 5-10 failed tasks in Dashboard as follows: *Importing report report-21248-180.yaml* at 10-18-2013 11:10 EDTValidation failed: Host already has a report for time and kind Backtrace
2010 Aug 30
1
taskomatic.rb : set_vm_vnc_port
Hi, Does somebody know what is the purpose of this line in taskomatic.rb : set_vm_vnc_port(db_vm, result.description) unless result.status != 0 We removed it to avoid 2 errors in taskomatic.log when a vm is launched : ERROR Mon Aug 30 15:23:00 +0000 2010 (26416) Task action processing failed: ActiveRecord::RecordInvalid: Validation failed: Vnc port must be greater than or equal to 0 ERROR
2009 Nov 13
3
Encoding::UTF_8 missing?
I''ve just done a fresh reinstall of OS X Snow Leopard on my mac, and I''m having all kinds of problems with Rails, but the latest problem has me stumped. Whenever I run rake db:seed to populate my database I hit the following error: ** Invoke db:seed (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db:seed rake aborted! uninitialized constant
2008 Jul 27
0
dhtml_calendar Plugin and dates
Man I am frustrated. 4 hours working on this and i can''t find an answer. Here it goes. I had some simple date select fields on a form. Then I wanted to add some additional datetime fields on a form with a nice widget so I installed the dhtml_calendar plugin. Now my migrations and forms don''t work on insert stating that the argument is out of range. Here is line #62 in the
2009 Apr 01
1
Erro de update no rails 2.3.2
Pessoal, estou precisando de ajuda... Estou usando o rails 2.3.2. Quando tento fazer qualquer update (método save em um registro existente), recebo o erro abaixo: ArgumentError in RequisicaosController#enviar_rede wrong number of arguments (3 for 1) c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ base.rb:2875:in `attributes_with_quotes''
2009 Nov 04
0
The error occurred while evaluating nil.prefetch_primary_key
The error occurred while evaluating nil.prefetch_primary_key? Hi, I have a problem with a model when I have 3 belongs_to relations in one the middle. This example is a subset of a grid-routing project: n 1 1 n +------------ Project Connection ------- ConnectionCost +------------ WaySearchRun
2009 Mar 05
7
issue with the object cache
Hi, I am getting a method_missing error when I run my application in the production environment unless I set config.cache_classes = false in config/environments/production.rb. This happens in Rails 2.2.2 but not in Rails 2.1.0. The method that is missing is one I used to have before I edited by hand the migration that creates the table associated with the object (I know you are discouraged to do
2009 Jul 04
12
save! not allowed after validates_uniqueness
I have this in a model validates_uniqueness_of :aspect, :scope => :user_id In an instance method of the same model I have "save!" but I don''t touch the :aspect attribute in that instance method at all. Whenever that save! command is run however I get this error: ActiveRecord::RecordInvalid: Validation failed: Aspect has already been taken I don''t
2008 Apr 09
5
intermittent BJ errors
hi all I''m running background tasks using BJ 1.0.1 (gem version). On some requests, the tasks are executed as expected. On others, I get the following error: RuntimeError (no bj found in ["/u/apps/igniter/releases/20080408205801/ script", "/bin", "/usr/bin", "/sbin", "/usr/sbin"]): when it runs, it runs fine but does anyone know what