2

enter image description here

I found this Error when call save method

My Rails Envi: Rails 3.2.5, sqlite 3.7.12 (in GemFile 1.3.6), latest ActiveRecord

Thanks You in Advance.

Kiattisak Anoochitarom
  • 2,157
  • 1
  • 20
  • 15

1 Answers1

0

ActiveRecord and newer versions of SQLite both support nested transactions, but the AR/SQLite adapter does not.

Further reading:

https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/6307 http://stackoverflow.com/questions/4153719/rails-3-nested-transactions-exception-in-a-child-block

A surprising omission from the docs, given that SQLite is the default DB!

jordanpg
  • 6,386
  • 4
  • 46
  • 70