sassc-rails (LoadError)の解消方法をメモしておきます。
エラーが出た状況
以下のコードの実行の際に起こりました。
bin/rails g model Task name:string description:text
エラー内容
rubygems/core_ext/kernel_require.rb>:38:in `require': cannot load such file -- sassc-rails (LoadError)
この後にもエラー文章が続きましたが、一部だけ抜粋しました。
解決方法
gemファイルに以下の行を追加する。
gem 'sassc-rails'
bundleを行こなって更新する。
これでエラーが解決しました。