Undefined method `require_gem' for main:Object


almost 10 years ago by Paul Sturgess on paulsturgess.co.uk articles.
To update an old app to Rails 2.x you will need to change 'require_gem' to just 'gem'. Otherwise you will get: Undefined method `require_gem' for main...

safe nils in ruby


almost 10 years ago by Evan Weaver on Snax.
Groovy has a feature called safe navigation. It lets you send messages to nil and have them return nil if you're in a special context. This is neat because...

method_missing: undefined method server_settings= for ActionMailer::Base:Class (NoMethodError)


almost 10 years ago by Paul Sturgess on paulsturgess.co.uk articles.
Chances are you have just upgraded to Rails 2. In Rails 2 server_settings has been replaced by smtp_settings....

Running old Ruby on Rails apps when you have Rails 2.x installed


almost 10 years ago by Paul Sturgess on paulsturgess.co.uk articles.
If you have Rails 2.x on your local machine and you want to run an old Ruby on Rails app (on an older version of Rails) you will find that there are some...

How to use Capistrano 1.x to deploy Ruby on Rails apps when you have Cap 2.x


almost 10 years ago by Paul Sturgess on paulsturgess.co.uk articles.
Recently installed Capistrano 2.x, but need to deploy an old Rails site using an old deploy script? If you haven't got round to updating your old Rails...

Porticus - A Graphical User Interface for MacPorts on OS X


almost 10 years ago by Paul Sturgess on paulsturgess.co.uk articles.
MacPorts is a package manager that will download, compile and install software, while installing any required dependencies, automatically. I use it for...

be the fastest you can be, memcached


almost 10 years ago by Evan Weaver on Snax.
New memcached client based on SWIG/libmemcached. 15 to 150 times faster than memcache-client, depending on the architecture. Full coverage, benchmarks.tell...

How to find out where your ruby and ruby on rails gems are installed on OS X


almost 10 years ago by Paul Sturgess on paulsturgess.co.uk articles.
To find out where your ruby and ruby on rails gems are installed just type: gem env gemp and if you want to jump straight to that directory just typecd...

ultrasphinx updates


almost 10 years ago by Evan Weaver on Snax.
You're already using Sphinx, right? Of course. It's not like it's only the fastest, most stable Rails search solution there is. At least, based on rigorous...

hello sports racers


almost 10 years ago by Evan Weaver on Snax.
evn: o i wrote benchmark/unit evn: http://blog.evanweaver.com/files/doc/fauna/benchmark_unit/ defunkt: blog post or it didnt happen Hey, so, benchmark_unit...