search for: update_without_callback

Displaying 11 results from an estimated 11 matches for "update_without_callback".

2008 Mar 18
2
update_without_callbacks?
Is there a new way to call a method similar to "update_without_callbacks" on an "after_save"? I need to calculate a total amount on a row after the row has been saved. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this grou...
2006 Apr 04
6
Oracle Problem. Maybe driver
...ve_record/connection_adapters/oracle_adapter.rb:53:in `attributes_with_quotes'' /opt/tools/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/base.rb:1719:in `update_without_lock'' /opt/tools/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/locking.rb:33:in `update_without_callbacks'' /opt/tools/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/callbacks.rb:274:in `update_without_timestamps'' /opt/tools/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/timestamp.rb:39:in `update'' /opt/tools/lib/ruby/gems/1.8/gems/activerecord-1...
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,
2005 Aug 02
0
Debugging woes
...ms/activerecord-1.11.0/lib/active_record/base.rb:1291:in `attributes_with_quotes'' from /usr/lib/ruby/gems/1.8/gems/activerecord-1.11.0/lib/active_record/base.rb:1140:in `update_without_lock'' from /usr/lib/ruby/gems/1.8/gems/activerecord-1.11.0/lib/active_record/locking.rb:45:in `update_without_callbacks'' from /usr/lib/ruby/gems/1.8/gems/activerecord-1.11.0/lib/active_record/callbacks.rb:274:in `update_without_timestamps'' from /usr/lib/ruby/gems/1.8/gems/activerecord-1.11.0/lib/active_record/timestamp.rb:39:in `update'' from /usr/lib/ruby/gems/1.8/gems/activerecord-1.1...
2006 Jul 18
1
Saving an ActiveRecord object
I get this error when I try to save an object that extends of ActiveRecord: NoMethodError in TeamController#add_player You have a nil object when you didn''t expect it! The error occured while evaluating nil.keys .... .... #{RAILS_ROOT}/app/models/player.rb:17:in `create_player'' #{RAILS_ROOT}/app/controllers/team_controller.rb:53:in `add_player'' And my Player model
2009 Apr 01
1
Erro de update no rails 2.3.2
...ord-2.3.2/lib/active_record/ locking/optimistic.rb:81:in `update_without_dirty'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ dirty.rb:146:in `update_without_timestamps'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ timestamp.rb:38:in `update_without_callbacks'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ callbacks.rb:282:in `update'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ base.rb:2868:in `create_or_update_without_callbacks'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/...
2006 Feb 22
3
Unit test failure - nil object?
...r text: 1) Error: test_update(UserTest): NoMethodError: You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occured while evaluating nil.+ /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/locking.rb:33:in `update_without_callbacks'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/callbacks.rb:274:in `update_without_timestamps'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/timestamp.rb:39:in `update'' /usr/local/lib/ruby/gems/1.8/gems/ac...
2006 May 19
2
update_attributes
...ected an instance of Array. The error occured while evaluating nil.+ I get the same error when I call update_attributes from the console Any ideas? The stack trace is below. Thanks, Peter /web/server/pkgs/ruby-1.8.4/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/locking.rb:37:in `update_without_callbacks'' /web/server/pkgs/ruby-1.8.4/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/callbacks.rb:274:in `update_without_timestamps'' /web/server/pkgs/ruby-1.8.4/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/timestamp.rb:39:in `update'' /web/server/pk...
2006 Mar 29
5
MySQL losts connection, can''t refer to User
...ord-1.14.0/lib/active_record/connection_adapters/mysql_adapter.rb:200:in `update'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/base.rb:1717:in `update_without_lock'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/locking.rb:33:in `update_without_callbacks'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/callbacks.rb:274:in `update_without_timestamps'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/timestamp.rb:39:in `update'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/l...
2006 Jan 18
15
Anyone got Globalize working???
...Resources/ports/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:1436:in `update_without_lock'' from /Applications/Locomotive/Bundles/rails-1.0.0-min.bundle/Contents/Resources/ports/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/locking.rb:45:in `update_without_callbacks'' from /Applications/Locomotive/Bundles/rails-1.0.0-min.bundle/Contents/Resources/ports/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/callbacks.rb:274:in `update_without_timestamps'' from /Applications/Locomotive/Bundles/rails-1.0.0-min.bundle/Cont...
2006 Oct 16
3
Strange ActiveRecord error popping up
...}/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:239:in `update'' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/base.rb:1781:in `update_without_lock'' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/locking/optimistic.rb:60:in `update_without_callbacks'' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/callbacks.rb:267:in `update_without_timestamps'' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/timestamp.rb:48:in `update'' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/base.rb:1774:in `cre...