What is the difference between “~> 4.0.1”, “4.0.1” and no version specifier in a Gemfile? [duplicate]

The first will tell bundler to load any gem that varies with the last (patch) number. So 4.0.x where x is 1 or greater. The second will only load 4.0.1. The third will get the highest value that works (depending on what the needs of the rest of your gems in your Gemfile) or will … Read more

Rails: Your user account isn’t allowed to install to the system RubyGems

In my case, I solved doing just what the error message suggests: Your user account isn’t allowed to install to the system RubyGems. You can cancel this installation and run: bundle install –path vendor/bundle to install the gems into ./vendor/bundle/ So, instead of: bundle install I ran: bundle install –path vendor/bundle That was the solution … Read more

Understanding Gemfile.lock: Is it okay to delete Gemfile.lock then run bundle install again?

You’re probably not going to ruin your dev environment. However, you might end up with newer versions of gems than you had before. It depends on how you have defined them in Gemfile. If you’re using entries like: gem “rails” Then you’ll get the latest rails gem, whatever that might be. If you’re using entries … Read more

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