cannot load railtie after upgrade to rails 4 per ruby.railstutorial.org

ActiveResource was an API added in Rails 2.x to support an XML (and later JSON) API so that Rails sites could “talk” to one another. It was a very hot topic when the idea of RESTful APIs made its way into the framework. Over time it became more of a novelty and infrequently maintained so … Read more

Fresh Installs of RVM and Ruby 2.1.1 – dyld library/pathing error

It looks it’s a temporary bug: https://twitter.com/mpapis/status/447926386314186752. The disable-binary option worked for me: rvm reinstall 2.1.1 –disable-binary EDIT – better solution I see that some people still have this problem. Today much better solution is to update RVM like this: rvm get stable The problem was caused by RVM – it had some paths hard-coded … Read more

How to find the path a Ruby Gem is installed at (i.e. Gem.lib_path c.f. Gem.bin_path)

The problem with the checked answer is that you must “require” the rubygem or it won’t work. Often this is undesireable because if you’re working with an executable gem, you don’t want to “require” it or you’ll get a bunch of warnings. This is a universal solution for executables and libs: spec = Gem::Specification.find_by_name(“cucumber”) gem_root … Read more

Errors when installing cocoapods with gem

The answer for this can be found here here although it is unrelated to this question. Below is a snippet of the answer which works best. For Xcode 11 on macOS 10.14, this can happen even after installing Xcode and installing command-line tools and accepting the license with sudo xcode-select –install sudo xcodebuild -license accept … Read more

Installing Ruby gems not working with Home Brew

Homebrew is nice. However unlike brew and npm, gem does not make aliases in /usr/local/bin automatically. Solution I went for a very simple approach (as of March 2020): # Based on “`brew –prefix ruby`/bin” export PATH=/usr/local/opt/ruby/bin:$PATH # Based on “`gem environment gemdir`/bin” export PATH=/usr/local/lib/ruby/gems/3.0.0/bin:$PATH Add this to your .bashrc (or .bash_profile, .zshrc, etc.). That’s it! … Read more

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