Paul Sturgess

Deploying two rails apps under the same account using SVN and Capistrano on hostingrails.com


almost 11 years ago by Paul Sturgess on paulsturgess.co.uk articles.
This is a step by step guide of how I setup my SVN repository and Capistrano deploy file on hostingrails.com Please keep in mind this setup is just one...

Using MacPorts(DarwinPorts) to install Ruby on Rails, MySQL, Subversion, Capistrano and Mongrel on Mac OS X


almost 11 years ago by Paul Sturgess on paulsturgess.co.uk articles.
Originally I installed Ruby on Rails on my MacBook by compiling from source, closely following the Hive Logic guide. However, I found that I couldn't deploy...

Counter_cache in ruby on rails 1.2.2


almost 11 years ago by Paul Sturgess on paulsturgess.co.uk articles.
I came across a rather odd Rails gotcha today whilst trying to use the counter_cache method. Counter cache is a magic field that you can use with belongs_to...

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


over 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...

Porticus - A Graphical User Interface for MacPorts on OS X


over 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...

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


over 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...

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


over 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...

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


over 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....

Undefined method `require_gem' for main:Object


over 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...

Find out where your Ruby on Rails gems are installed


over 10 years ago by Paul Sturgess on paulsturgess.co.uk articles.
Just type the following at the command line: gem env gemp Or go straight to the directory with: cd `gem env gemp`...