问题
I am getting an error when I am trying to
bundle exec rails generate apartment:install
Getting this error,
build': undefined method new' for "Apartment::Reloader":String (NoMethodError)
Looks this is a middleware issue. Any solution.
回答1:
In order to use Rails 6 you have to use the development branch on github:
gem "apartment", git: 'git@github.com:influitive/apartment.git', branch: "development"
来源:https://stackoverflow.com/questions/59590162/issue-when-installing-rails-apartment-gem