Hi guys i am currently still learning Ruby. Anyway i am on chapter 13 on
web application development.I am stuck at this part for ruby
script/generate Entry tittle:string content:text
Based on my research i have came across this link:
Apparently i used Rails 3. so this is what happened.I located to my
directory i run this command
D:\RubyProjects/Part-3/Chapter-13/rails/mydiary> rails generate scaffold
Entry title:string content:text
`rescue in start’: Bundler could not find compatible versions for gem
rails (= 3.0.1) x64-mingw32 was resolved to 3.0.1, which depends on
bundler (~> 1.0.0) x64-mingw32
Current Bundler version:
This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running
gem install bundler?
Could not find gem ‘bundler (~> 1.0.0) x64-mingw32’, which is required
by gem ‘rails (= 3.0.1) x64-mingw32’, in any of the sources.
start' from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.13.2/lib/bundler/resolver.rb:181:inresolve’
resolve' from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.13.2/lib/bundler/definition.rb:174:inspecs’
specs_for' from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.13.2/lib/bundler/definition.rb:222:inrequested_specs’
block in definition_method' from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.13.2/lib/bundler/runtime.rb:19:insetup’
setup' from D:/RubyProjects/Part-3/Chapter_13/rails/mydiary/config/boot.rb:8:in<top (required)>’
require' from C:/Ruby22-x64/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:56:inrequire’
from script/rails:5:in `’
And i also tried to run this as well: install bundle, gem install bundle
My current bundler version is (1.13.2, 1.0.22)
Ruby Version: 2.6.7
I am using Windows 10
Can anyone help me on this?