How to remove gem from Ruby on Rails application?

后端 未结 6 1698
长情又很酷
长情又很酷 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条回答
  •  悲哀的现实
    2020-12-08 05:11

    If you're using Rails 3+, remove the gem from the Gemfile and run bundle install.

    If you're using Rails 2, hopefully you've put the declaration in config/environment.rb. If so, removing it from there and running rake gems:install should do the trick.

提交回复
热议问题