search for: rollback_active_record_state

Displaying 20 results from an estimated 29 matches for "rollback_active_record_state".

2011 Dec 01
5
Validation failed: Host already has a report for time and kind
...d/vendor/rails/activerecord/lib/active_record/transactions.rb:182:in `transaction'' /usr/share/puppet-dashboard/vendor/rails/activerecord/lib/active_record/transactions.rb:200:in `save!'' /usr/share/puppet-dashboard/vendor/rails/activerecord/lib/active_record/transactions.rb:208:in `rollback_active_record_state!'' /usr/share/puppet-dashboard/vendor/rails/activerecord/lib/active_record/transactions.rb:200:in `save!'' /usr/share/puppet-dashboard/app/models/report.rb:113:in `create_from_yaml'' /usr/share/puppet-dashboard/app/models/report.rb:86:in `create_from_yaml_file'' An...
2008 Apr 30
6
best practice for object transaction?
I have a new @offer that needs to generate a document if saved. But that''s all or nothing: transaction do @offer.save! generate_document end # handle exceptions if needed If save! fails everything is fine, but if generate_document raises an exception @offer is left as a model with timestamps, id, which is not a new_record? anymore (though the database was
2010 Mar 22
0
rspec bug, on Mysql::Error: MySQL server has gone away: ROLLBACK TO SAVEPOINT active_record_1
...verecord-2.3.5/lib/active_record/transactions.rb:228:in `with_transaction_returning_status'' /home/poldz/.gem/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/transactions.rb:196:in `save'' /home/poldz/.gem/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/transactions.rb:208:in `rollback_active_record_state!'' /home/poldz/.gem/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/transactions.rb:196:in `save'' /home/poldz/projects/ruby/wruwo/app/models/user.rb:811:in `log_activity'' /home/poldz/projects/ruby/wruwo/app/models/task.rb:490:in `notify_new_task'' /home/poldz/pr...
2009 Feb 21
2
ArgumentError on model create statement
.../lib/active_record/transactions.rb:178:in `with_transaction_returning_status'' from /src/parkassist/paseweb/vendor/rails/activerecord/lib/active_record/transactions.rb:146:in `save'' from /src/parkassist/paseweb/vendor/rails/activerecord/lib/active_record/transactions.rb:158:in `rollback_active_record_state!'' from /src/parkassist/paseweb/vendor/rails/activerecord/lib/active_record/transactions.rb:146:in `save'' from /src/parkassist/paseweb/vendor/rails/activerecord/lib/active_record/base.rb:693:in `create'' from (irb):12 Any help? What am I missing and why does a simp...
2009 Jun 17
2
validates_uniqueness_of fails on STI in Rails 2.3.2
....2/lib/active_record/transactions.rb:228:in `with_transaction_returning_status'' from /home/joaz/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/transactions.rb:196:in `save'' from /home/joaz/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/transactions.rb:208:in `rollback_active_record_state!'' from /home/joaz/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/transactions.rb:196:in `save'' Putting validates_uniqueness_of in the Position model works fine. It doesn''t work in any inherited class. This seems to be a regression issue on Rails 2.3, works fi...
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)
...ecord/ transactions.rb:182:in `transaction'' /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ transactions.rb:200:in `save__without_trace_ActiveRecord___self_class_name__save'' /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ transactions.rb:208:in `rollback_active_record_state!'' /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ transactions.rb:200:in `save__without_trace_ActiveRecord___self_class_name__save'' /var/www/rails/dropzone/vendor/plugins/newrelic_rpm/lib/new_relic/ agent/method_tracer.rb:138:in `save__without_trace_ActiveRecord_...
2013 Oct 23
0
Error: allocator undefined for Proc
...ctiverecord-3.0.0/lib/active_record/transactions.rb:287:in `with_transaction_returning_status'' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.0/lib/active_record/transactions.rb:237:in `save'' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.0/lib/active_record/transactions.rb:248:in `rollback_active_record_state!'' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.0/lib/active_record/transactions.rb:236:in `save'' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.0/lib/active_record/associations/has_many_association.rb:66:in `insert_record'' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.0/li...
2013 Oct 18
0
Dashboard failed tasks
...r/rails/activerecord/lib/active_record/transactions.rb:182:in `transaction''/var/www/html/puppet-dashboard/vendor/rails/activerecord/lib/active_record/transactions.rb:200:in `save!''/var/www/html/puppet-dashboard/vendor/rails/activerecord/lib/active_record/transactions.rb:208:in `rollback_active_record_state!''/var/www/html/puppet-dashboard/vendor/rails/activerecord/lib/active_record/transactions.rb:200:in `save!''/var/www/html/puppet-dashboard/app/models/report.rb:113:in `create_from_yaml''/var/www/html/puppet-dashboard/app/models/report.rb:86:in `create_from_yaml_file'&...
2007 Dec 13
4
Attachment_fu problems on updates
On the creation of a member the member''s picture uploads as it should. However, when updating the member, while selecting a new picture, an error is thrown: can''t convert nil into String RAILS_ROOT: /Users/chris/Documents/Projects/Rails/CommunityCMS/trunk Application Trace | Framework Trace | Full Trace
2008 Mar 08
9
Validation error handling on related models
...rd-2.0.2/lib/active_record/ transactions.rb:100:in `transaction'' c:/usr/lib/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ transactions.rb:112:in `save!'' c:/usr/lib/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ transactions.rb:120:in `rollback_active_record_state!'' ... Why am I not getting the default validation error displayed on the edit page? Thanks, X-POSTED Rails Forum -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups &...
2010 Aug 30
1
taskomatic.rb : set_vm_vnc_port
...#39;/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/transactions.rb:182:in `transaction'/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/transactions.rb:200:in `save!'/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/transactions.rb:208:in `rollback_active_record_state!'/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/transactions.rb:200:in `save!'/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/associations/association_proxy.rb:217:in `send'/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/associations...
2009 Nov 13
3
Encoding::UTF_8 missing?
...s/activerecord-2.3.4/lib/active_record/transactions.rb:228:in `with_transaction_returning_status'' /Library/Ruby/Gems/1.8/gems/activerecord-2.3.4/lib/active_record/transactions.rb:196:in `save'' /Library/Ruby/Gems/1.8/gems/activerecord-2.3.4/lib/active_record/transactions.rb:208:in `rollback_active_record_state!'' /Library/Ruby/Gems/1.8/gems/activerecord-2.3.4/lib/active_record/transactions.rb:196:in `save'' /Library/Ruby/Gems/1.8/gems/activerecord-2.3.4/lib/active_record/base.rb:723:in `create'' /Users/iainbeeston/Documents/Programs/Ruby/inspect/db/seeds.rb:9 /Library/Ruby/Gems/1....
2008 Jul 27
0
dhtml_calendar Plugin and dates
...uby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/transactions.rb:98:in `transaction'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/transactions.rb:110:in `save!'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/transactions.rb:118:in `rollback_active_record_state!'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/transactions.rb:110:in `save!'' -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ru...
2009 Apr 01
1
Erro de update no rails 2.3.2
...ecord-2.3.2/lib/active_record/ transactions.rb:228:in `with_transaction_returning_status'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ transactions.rb:196:in `save'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ transactions.rb:208:in `rollback_active_record_state!'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ transactions.rb:196:in `save'' C:/RoR/dev/asac/app/controllers/requisicaos_controller.rb:194:in `enviar_rede'' Alguem poderia me ajudar? --~--~---------~--~----~------------~-------~--~----~ You recei...
2007 Jun 28
1
DRb server crashing
...tion'' [RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/transactions.rb:97:in `transaction'' [RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/transactions.rb:105:in `save'' [RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/transactions.rb:117:in `rollback_active_record_state!'' [RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/transactions.rb:105:in `save'' [RAILS_ROOT]/app/models/comment.rb:35:in `after_create'' [RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/callbacks.rb:352:in `send'' [RAILS_ROOT]/vendor/rails/...
2011 Feb 09
0
Mysql2::Error: SAVEPOINT active_record_1 does not exist
....rb:287:in `with_transaction_returning_status'' /Users/conor/.rvm/gems/ruby-1.9.2-p136/gems/activerecord-3.0.3/lib/ active_record/transactions.rb:237:in `block in save'' /Users/conor/.rvm/gems/ruby-1.9.2-p136/gems/activerecord-3.0.3/lib/ active_record/transactions.rb:248:in `rollback_active_record_state!'' /Users/conor/.rvm/gems/ruby-1.9.2-p136/gems/activerecord-3.0.3/lib/ active_record/transactions.rb:236:in `save'' /Users/conor/Documents/treeMetrics/TreeMetricsFrontEnd/test/unit/ xml_upload_test.rb:42:in `block in <class:XmlUploadTest>'' I have been storing...
2009 Nov 04
0
The error occurred while evaluating nil.prefetch_primary_key
...s.rb:178:in `with_transaction_returning_status'' from /home/markus/Development/GPT2/my_test2/vendor/rails/activerecord/lib/active_record/transactions.rb:146:in `save'' from /home/markus/Development/GPT2/my_test2/vendor/rails/activerecord/lib/active_record/transactions.rb:158:in `rollback_active_record_state!'' from /home/markus/Development/GPT2/my_test2/vendor/rails/activerecord/lib/active_record/transactions.rb:146:in `save'' from /home/markus/Development/GPT2/my_test2/vendor/rails/activerecord/lib/active_record/base.rb:693:in `create'' from (irb):5>> For this te...
2012 Aug 14
1
NoMethodError: undefined method `accept' for nil:NilClass
...:in `with_transaction_returning_status'' from /Users/blaine/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.2.3/lib/active_record/transactions.rb:241:in `block in save'' from /Users/blaine/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.2.3/lib/active_record/transactions.rb:252:in `rollback_active_record_state!'' from /Users/blaine/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.2.3/lib/active_record/transactions.rb:240:in `save'' from (irb):7 from /Users/blaine/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.3/lib/rails/commands/console.rb:47:in `start'' from /Users/blaine/.rvm/ge...
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