Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove gem from Ruby on Rails application?

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 the files it created on my application. In other words, I want to restore the system to what it used to be before the gem. How can I do this? (I'm using Ruby on Rails 3.)

like image 432
Oded Harth Avatar asked Mar 09 '11 18:03

Oded Harth


People also ask

How do I remove a gem from my project?

You can remove the Devise gem from your Gemfile and then run bundle install . The gem should then be removed. To be safe, you can also run the following: gem uninstall gem_name from the command line.


1 Answers

You can use

gem uninstall <gem-name>

like image 156
rtfminc Avatar answered Sep 20 '22 10:09

rtfminc