I created a new app named Useremail, but on terminal when I'm creating controller/model, it's throwing an error and not generating controller/model.
ac@ac-HP:~/Useremail$ bin/rails g controller Users
/home/ac/.rvm/rubies/ruby-2.6.0/lib/ruby/2.6.0/bundler/rubygems_integration.rb:408:in `block (2 levels) in replace_gem': Error loading the 'sqlite3' Active Record adapter. Missing a gem it depends on? can't activate sqlite3 (~> 1.3.6), already activated sqlite3-1.4.0.
Make sure all dependencies are added to Gemfile. (LoadError)
In your project Gemfile, mention the version for the gem 'sqlite3' as gem 'sqlite3', '~> 1.3.6'
Then bundle install
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With