I resolved the problem similar to you. This does work when I require sqlite3
in Ruby. However, when used in Rails, the bundler will install the native version, which doesn't work. I have to run bundle update
, uninstall the native version with gem uninstall
, and then edit the sqlite3
entry in the Gemfile.lock
to sqlite3 (1.3.11)
or (1.3.13)
and now it's working.
Or sometimes it's depending on many other reasons when we search to the Google with writing same error then it's showing the huge result every other person solved this differently. So if you not resolving this with my style then you need to research and need to try every possible way.