search for: with_transaction_returning_status

Displaying 17 results from an estimated 17 matches for "with_transaction_returning_status".

2009 Feb 21
2
ArgumentError on model create statement
...ils/activerecord/lib/active_record/dirty.rb:79:in `save_without_transactions'' from /src/parkassist/paseweb/vendor/rails/activerecord/lib/active_record/transactions.rb:179:in `send'' from /src/parkassist/paseweb/vendor/rails/activerecord/lib/active_record/transactions.rb:179:in `with_transaction_returning_status'' from /src/parkassist/paseweb/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:66:in `transaction'' from /src/parkassist/paseweb/vendor/rails/activerecord/lib/active_record/transactions.rb:129:in `transaction'' from /src/...
2009 Jun 17
2
validates_uniqueness_of fails on STI in Rails 2.3.2
...activerecord-2.3.2/lib/active_record/dirty.rb:79:in `save_without_transactions'' from /home/joaz/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/transactions.rb:229:in `send'' from /home/joaz/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/transactions.rb:229:in `with_transaction_returning_status'' from /home/joaz/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/connection_adapters/abstract/database_statements.rb:136:in `transaction'' from /home/joaz/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/transactions.rb:182:in `transaction'' from /home/...
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,
2013 Oct 23
0
Error: allocator undefined for Proc
...uby/gems/1.8/gems/activerecord-3.0.0/lib/active_record/attribute_methods/dirty.rb:22:in `save'' /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:289:in `with_transaction_returning_status'' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:139:in `transaction'' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.0/lib/active_record/transactions.rb:204:in `transaction'' /usr/lib/ruby/gems/1.8/gems/a...
2009 Nov 13
3
Encoding::UTF_8 missing?
...uby/Gems/1.8/gems/activerecord-2.3.4/lib/active_record/dirty.rb:79:in `save_without_transactions'' /Library/Ruby/Gems/1.8/gems/activerecord-2.3.4/lib/active_record/transactions.rb:229:in `send'' /Library/Ruby/Gems/1.8/gems/activerecord-2.3.4/lib/active_record/transactions.rb:229:in `with_transaction_returning_status'' /Library/Ruby/Gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/database_statements.rb:136:in `transaction'' /Library/Ruby/Gems/1.8/gems/activerecord-2.3.4/lib/active_record/transactions.rb:182:in `transaction'' /Library/Ruby/Gems/1.8/gems/act...
2009 Apr 01
1
Erro de update no rails 2.3.2
...1.8/gems/activerecord-2.3.2/lib/active_record/ dirty.rb:79:in `save_without_transactions'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ transactions.rb:229:in `send'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ transactions.rb:229:in `with_transaction_returning_status'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ connection_adapters/abstract/database_statements.rb:142:in `transaction'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ transactions.rb:182:in `transaction'' c:/ruby/lib/ruby/gems/1...
2010 Sep 01
0
Error on update_attributes with HABTM relationship
...lib/active_record/base.rb:1544:in `each'' activerecord (3.0.0) lib/active_record/base.rb:1544:in `attributes='' activerecord (3.0.0) lib/active_record/persistence.rb:127:in `block in update_attributes'' activerecord (3.0.0) lib/active_record/transactions.rb:289:in `block in with_transaction_returning_status'' activerecord (3.0.0) lib/active_record/connection_adapters/abstract/ database_statements.rb:139:in `transaction'' activerecord (3.0.0) lib/active_record/transactions.rb:204:in `transaction'' activerecord (3.0.0) lib/active_record/transactions.rb:287:in `with_transaction_re...
2009 Nov 04
0
The error occurred while evaluating nil.prefetch_primary_key
...cord/dirty.rb:79:in `save_without_transactions'' from /home/markus/Development/GPT2/my_test2/vendor/rails/activerecord/lib/active_record/transactions.rb:179:in `send'' from /home/markus/Development/GPT2/my_test2/vendor/rails/activerecord/lib/active_record/transactions.rb:179:in `with_transaction_returning_status'' from /home/markus/Development/GPT2/my_test2/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:66:in `transaction'' from /home/markus/Development/GPT2/my_test2/vendor/rails/activerecord/lib/active_record/transactions.rb:129:in `tran...
2010 Sep 27
0
problem with set_sequence_name please help
...tive_record/attribute_methods/dirty.rb:30:in `save!'' from /Users/cyberjom/.rvm/gems/jruby-1.5.2/gems/activerecord-3.0.0/lib/active_record/transactions.rb:242:in `save!'' from /Users/cyberjom/.rvm/gems/jruby-1.5.2/gems/activerecord-3.0.0/lib/active_record/transactions.rb:289:in `with_transaction_returning_status'' from /Users/cyberjom/.rvm/gems/jruby-1.5.2/gems/activerecord-3.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:139:in `transaction'' from /Users/cyberjom/.rvm/gems/jruby-1.5.2/gems/activerecord-3.0.0/lib/active_record/transactions.rb:204:in `transacti...
2012 Aug 14
1
NoMethodError: undefined method `accept' for nil:NilClass
...rty.rb:22:in `save'' from /Users/blaine/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.2.3/lib/active_record/transactions.rb:241:in `block (2 levels) in save'' from /Users/blaine/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.2.3/lib/active_record/transactions.rb:295:in `block in with_transaction_returning_status'' from /Users/blaine/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.2.3/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'' from /Users/blaine/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.2.3/lib/active_record/transactions.rb:208:in `trans...
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
2013 Feb 10
0
Nested attributes doesnt get updated
...ctive_record/base.rb:1747:in `each'' activerecord (3.1.3) lib/active_record/base.rb:1747:in `assign_attributes'' activerecord (3.1.3) lib/active_record/persistence.rb:162:in `block in update_attributes'' activerecord (3.1.3) lib/active_record/transactions.rb:295:in `block in with_transaction_returning_status'' activerecord (3.1.3) lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'' activerecord (3.1.3) lib/active_record/transactions.rb:208:in `transaction'' activerecord (3.1.3) lib/active_record/transactions.rb:293:in `with_transaction_ret...
2010 Dec 10
0
Encoding issues when uploading files
...ord/validations.rb:43:in `save'' activerecord (3.0.0) lib/active_record/attribute_methods/dirty.rb: 21:in `save'' activerecord (3.0.0) lib/active_record/transactions.rb:237:in `block (2 levels) in save'' activerecord (3.0.0) lib/active_record/transactions.rb:289:in `block in with_transaction_returning_status'' activerecord (3.0.0) lib/active_record/connection_adapters/abstract/ database_statements.rb:139:in `transaction'' activerecord (3.0.0) lib/active_record/transactions.rb:204:in `transaction'' activerecord (3.0.0) lib/active_record/transactions.rb:287:in `with_transaction_re...
2012 Sep 18
2
undefined method `to_sym' for nil:NilClass
...erecord (3.2.2) lib/active_record/validations.rb:50:in `save'' activerecord (3.2.2) lib/active_record/attribute_methods/dirty.rb:22:in `save'' activerecord (3.2.2) lib/active_record/transactions.rb:241:in `save'' activerecord (3.2.2) lib/active_record/transactions.rb:295:in `with_transaction_returning_status'' activerecord (3.2.2) lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'' activerecord (3.2.2) lib/active_record/transactions.rb:208:in `transaction'' activerecord (3.2.2) lib/active_record/transactions.rb:293:in `with_transaction_ret...
2011 Feb 09
0
Mysql2::Error: SAVEPOINT active_record_1 does not exist
...act/database_statements.rb: 127:in `transaction'' /Users/conor/.rvm/gems/ruby-1.9.2-p136/gems/activerecord-3.0.3/lib/ active_record/transactions.rb:204:in `transaction'' /Users/conor/.rvm/gems/ruby-1.9.2-p136/gems/activerecord-3.0.3/lib/ active_record/transactions.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!'' /...
2010 Mar 22
0
rspec bug, on Mysql::Error: MySQL server has gone away: ROLLBACK TO SAVEPOINT active_record_1
...tive_record/connection_adapters/abstract/database_statements.rb:145:in `transaction'' /home/poldz/.gem/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/transactions.rb:182:in `transaction'' /home/poldz/.gem/ruby/1.8/gems/activerecord-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/...
2010 Aug 22
7
Rails 3: Error saving an object with no useful information
...database_statements.rb:162:in`transaction'' from D:/ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.0.0.rc/lib/active_record/transactions.rb:204:in `transaction'' from D:/ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.0.0.rc/lib/active_record/transactions.rb:287:in `with_transaction_returning_status'' from D:/ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.0.0.rc/lib/active_record/transactions.rb:242:in `save!'' from (irb):54 from D:/ruby192/lib/ruby/gems/1.9.1/gems/railties-3.0.0.rc/lib/rails/commands/console.rb:44:in `start'' from D:/ru...