When I running command
rails generate mongoid:config
or
rails generate rspec:install
I am getting this error - match: invalid byte sequence in UTF-8 (ArgumentError)
I tried those gems:
gem 'rack-utf8_sanitizer'
gem "handle_invalid_percent_encoding_requests"
gem 'utf8-cleaner'
They do not help! I am using macbook OSX 10.9 How can I fix it? I am using ruby 2.1.2 and I make app by rails new myapp and I have not change anything yet in the code.
I found what was the problem! It was a gem 'spring' which automatically adds to Gemfile when you run: rails new myapp. To avoid this problem you need to run: rails new myapp --skip-spring
I found answer here: Rails Spring breaking generators
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.