It Really Is the Simple Things

Sunday, May 18, 2008 at 08:35 PM

As I said in the last post, sometimes it’s the simplest things that get me. For example, comment posting hasn’t worked on my site in a while (which in a way is a great thing, considering the amount of comment spam I get). I tried looking everywhere to get comment posting to work again; and yet, I was not able to.

Warning: Nerdy story alert!

Come to find out, it was because of a very small issue (which I will not get too in-depth with here) with how Ruby on Rails loads gems. If you are running the gem with it locally installed, you can require the gem in your code by putting gem ‘gemname. However, if you have frozen that gem into your vendor/gems directory and are using the config.load_paths to load the gem manually, you have to change the gem ‘gemname to require ‘gemname.

Wow, so many hours wasted because of one word.

 

Comments

There are currently no comments for this post, please add one below.

Add a Comment

View More Tweets