What is the best way to uninstall gems from a rails3 project?

Bundler is launched from your app’s root directory so it makes sure all needed gems are present to get your app working.If for some reason you no longer need a gem you’ll have to run the gem uninstall gem_name as you stated above.So every time you run bundler it’ll recheck dependencies EDIT – 24.12.2014 I … Read more

Task Runners (Gulp, Grunt, etc) and Bundlers (Webpack, Browserify). Why use together?

Grunt and Gulp are actually task runners, and they have differences like config driven tasks versus stream based transformations. Each has its own strengths and weaknesses, but at the end of the day, they pretty much help you create tasks that can be run to solve a larger build problem. Most of the time, they … Read more

What is the difference between Gemfile and Gemfile.lock in Ruby on Rails

The Gemfile is where you specify which gems you want to use, and lets you specify which versions. The Gemfile.lock file is where Bundler records the exact versions that were installed. This way, when the same library/project is loaded on another machine, running bundle install will look at the Gemfile.lock and install the exact same … Read more

Bundler: Command not found

My problem was that I did: sudo gem install bundler So I had installed as root rather than as myself. So I uninstalled as root, then installed as myself: sudo gem uninstall bundler gem install bundler rbenv rehash (last command for if you are using rbenv) And it worked. The “correct” path was in .bashrc … Read more

You don’t have write permissions for the /var/lib/gems/2.3.0 directory

You first need to uninstall the ruby installed by Ubuntu with something like sudo apt-get remove ruby. Then reinstall ruby using rbenv and ruby-build according to their docs: cd $HOME sudo apt-get update sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libxml2-dev libxslt1-dev libcurl4-openssl-dev libffi-dev git clone https://github.com/rbenv/rbenv.git ~/.rbenv echo ‘export PATH=”$HOME/.rbenv/bin:$PATH”‘ >> … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)