How to remove gem from Ruby on Rails application?

后端 未结 6 1662
长情又很酷
长情又很酷 2020-12-08 04:29

I have installed a gem on my Rails application (devise). After I installed the gem, I realized that I don\'t need it.

I want to remove the gem, its dependencies and

6条回答
  •  -上瘾入骨i
    2020-12-08 05:00

    How about something like:

    gem dependency devise --pipe | cut -d \  -f 1 | xargs gem uninstall -a
    

    (this assumes that you're not using bundler - but I guess you're not since removing from your bundle gemspec would solve the problem)

提交回复
热议问题