Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails 3: Removing a Gem from project?

I am currently using devise for my authentication solution however I really don't like it and want to use authlogic instead.

How can i remove the Devise gem from my project completely so i can then add the authlogic gem safely?

like image 754
Mo. Avatar asked Apr 05 '11 23:04

Mo.


People also ask

How do I remove gem from Gemfile lock?

You can run just bundle or bundle install to install gems based on your Gemfile. That will remove the instance of mygem from your Gemfile. lock file.

How do you remove a gem bundler?

Installation and usage. To install a prerelease version (if one is available), run gem install bundler --pre . To uninstall Bundler, run gem uninstall bundler .


1 Answers

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.

like image 82
McStretch Avatar answered Sep 20 '22 04:09

McStretch