Forum: Ruby Raise an error on Ruby/Script generate scaffold

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Be955f2578b8971802ceab589fe24ad3?d=identicon&s=25 Suresh Ilankovan (sureshhey)
on 2016-10-07 05:54
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:
http://stackoverflow.com/questions/4320759/why-doe...

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

Error:
----------------------------------------------------------------------
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.13.2/lib/bundler/resolver.rb:203:in
`rescue in start': Bundler could not find compatible versions for gem
"bundler": (Bundler::VersionConflict)
  In Gemfile:
    rails (= 3.0.1) x64-mingw32 was resolved to 3.0.1, which depends on
      bundler (~> 1.0.0) x64-mingw32

  Current Bundler version:
    bundler (1.13.2)
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.
        from
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.13.2/lib/bundler/resolver.rb:199:in
`start'
        from
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.13.2/lib/bundler/resolver.rb:181:in
`resolve'
        from
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.13.2/lib/bundler/definition.rb:250:in
`resolve'
        from
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.13.2/lib/bundler/definition.rb:174:in
`specs'
        from
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.13.2/lib/bundler/definition.rb:233:in
`specs_for'
        from
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.13.2/lib/bundler/definition.rb:222:in
`requested_specs'
        from
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.13.2/lib/bundler/runtime.rb:118:in
`block in definition_method'
        from
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.13.2/lib/bundler/runtime.rb:19:in
`setup'
        from
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.13.2/lib/bundler.rb:99:in
`setup'
        from
D:/RubyProjects/Part-3/Chapter_13/rails/mydiary/config/boot.rb:8:in
`<top (required)>'
        from
C:/Ruby22-x64/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:56:in
`require'
        from
C:/Ruby22-x64/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:56:in
`require'
        from script/rails:5:in `<main>'
----------------------------------------------------------------------

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?
Be955f2578b8971802ceab589fe24ad3?d=identicon&s=25 Suresh Ilankovan (sureshhey)
on 2016-10-07 15:37
bumps
Be955f2578b8971802ceab589fe24ad3?d=identicon&s=25 Suresh Ilankovan (sureshhey)
on 2016-10-08 10:09
Really a need of help :)
Be955f2578b8971802ceab589fe24ad3?d=identicon&s=25 Suresh Ilankovan (sureshhey)
on 2016-10-09 18:03
bumps
Be955f2578b8971802ceab589fe24ad3?d=identicon&s=25 Suresh Ilankovan (sureshhey)
on 2016-10-11 02:58
-----SOLVED-----
4828d528e2e46f7c8160c336eb332836?d=identicon&s=25 Robert Heiler (shevegen)
on 2016-10-20 23:00
Come to linux!
Be955f2578b8971802ceab589fe24ad3?d=identicon&s=25 Suresh Ilankovan (sureshhey)
on 2016-10-21 09:08
Robert Heiler wrote in post #1185172:
> Come to linux!

Haha it's okay bro!. Yeah Windows is facing a lot of problems.
This topic is locked and can not be replied to.