Raise an error on Ruby/Script generate scaffold

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-does-ruby-script-generate-return-no-such-file-or-directory

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:inresolve’
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:inspecs’
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:inrequested_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:insetup’
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: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?

bumps

Really a need of help :slight_smile:

bumps

-----SOLVED-----

Come to linux!

Robert H. wrote in post #1185172:

Come to linux!

Haha it’s okay bro!. Yeah Windows is facing a lot of problems.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs