Fixing: undefined method `require_gem’ for main:Object (NoMethodError)
After upgrading to the newest version of rails (2.2.2) I was getting this error: administrator@shuttle:~$ rails -v/usr/bin/rails:17: undefined method `require_gem’ for main:Object (NoMethodError) Anytime I called “rails” I would get this error and could not get past. Here is the fix administrator@shuttle:~/$ sudo vim /usr/bin/rails Look for anywhere in the file that calls “require_gem”, I [...]
In: rails, software · Tagged with: fix, rails, ruby
Fixing: uninitialized constant Gem::GemRunner (NameError) – Ubuntu
After upgrading to the newest version of rails (2.2.2) I was getting this error: administrator@shuttle:~/$ gem -v /usr/bin/gem:10:Warning: Gem::manage_gems is deprecated and will be removed on or after March 2009. /usr/bin/gem:23: uninitialized constant Gem::GemRunner (NameError) Anytime I called “gem” I would get this error and could not get past. Here is the fix administrator@shuttle:~/$ sudo [...]
In: rails · Tagged with: code, fix, rails, upgrade
Working with Blueprint: A CSS Framework
So I decided to change my blogging software, from no software (Blogger) to SimpleLog. I setup everything up in my dev environment and it was by far the easiest setup I have seen so far. Took about 10 minutes including setting up the virtual hosts. While getting super interested in my blog again I was [...]
In: main · Tagged with: blueprint, development, example, rails, server, simplelog, tutorial
Understanding Rails Partials
Partial’s are great, i really wish there was something as straight forward in Smarty. With Smarty it would require a loop and an include, but partials roll that all into one. It great when you are displaying a list of items, especially if that list can be used in multiple pages in many contexts. With [...]
In: main · Tagged with: example, partial, rails, tutorial
Starting a Rails Life
My rails life seems to be starting out similar to my php life. It all began with an internal application for my dad. He has a music instrument sales, rental and repair business and he initially did everything on paper to keep track of customers, instruments and billing. I took it upon myself to create [...]
In: main · Tagged with: development, php, rails
