简体   繁体   中英

How I can completely remove everything generated by gem?

I installed the Redactor gem, but after some time I decided that this gem doesn't suit my needs. I removed it from Gemfile, and also removed all of the gem's files (I suppose) in all app folders.

When I try to deploy app, the server fails to start with this error:

uninitialized constant Redactor Rails

It points to the folder which I actually removed (in models). Each time it is created while I'm pushing the app to the server (with git).

How can I completely remove ALL the files that the gem generated?

You sure did

gem uninstall redactor-rails

Remove in your application.js

//= require redactor-rails

also in your application.css

*= require redactor-rails

The gem also generated in

app/uploaders/redactor_rails_document_uploader.rb

app/models/redactor_rails/document.rb

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM