Error “'Validate_default_type!': An option's default must match its type (ArgumentError)” when running Ruby on Rails generate on Windows

后端 未结 4 612
心在旅途
心在旅途 2020-12-11 01:18

I am following this tutorial and have just started. I have installed Ruby on Rails with gem install rails and have created a blog with rails new blog

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-11 01:36

    I just ran into this myself. I've been working with Rails for almost a year so I was like "Uhhhhh so do I not know what I'm doing? Orrrr?" xD.

    I'm on an Ubuntu-based Linux distro.

    I added this line to my Gemfile:

    gem 'thor', '0.19.1'

    I then ran the command "bundle update thor" to make it grab the exact version I needed. Now my generators work again.

提交回复
热议问题