Paul Sturgess

Can't activate rubyforge


almost 10 years ago by Paul Sturgess on paulsturgess.co.uk articles.
I just tried to start one of my rails apps and got... Can't activate rubyforge (= 0.4.4, runtime), already activated rubyforge-1.0.0 (Gem::Exception) I...

Hoptoad - Free ruby on rails exception catcher


almost 10 years ago by Paul Sturgess on paulsturgess.co.uk articles.
I've been using the exception_notification plugin for sometime now. It's been a life saver on many occassion, allowing me to be made aware of bugs at the...

Free Ruby on Rails security e-book


almost 10 years ago by Paul Sturgess on paulsturgess.co.uk articles.
The the ever so useful Ruby on Rails security blog, rorsecurity, has released a free e-book....

Undefined method `cache_template_extensions=' when upgrading to Ruby on Rails 2.2.2


almost 10 years ago by Paul Sturgess on paulsturgess.co.uk articles.
After upgrading to Ruby on Rails 2.2.2 I was getting... undefined method `cache_template_extensions=' The simple fix was to remove it from my config/environments...

'load_missing_constant': uninitialized constant Inflector when upgrading to Ruby on Rails 2.2.2


almost 10 years ago by Paul Sturgess on paulsturgess.co.uk articles.
It would appear that the way the Inflector is used in Ruby on Rails 2.2.2 has changed. There are a few plugins that rely on it's old implementation, notably...

ActionView::TemplateError: uninitialized constant Err::Acts::Textiled::ClassMethods::RedCloth


over 9 years ago by Paul Sturgess on paulsturgess.co.uk articles.
After I setup the acts_as_textiled plugin. I got the following error when I deployed to my production server. ActionView::TemplateError: uninitialized...

Using Cooliris with Ruby on Rails


over 9 years ago by Paul Sturgess on paulsturgess.co.uk articles.
Cooliris (formally known as PicLens) is a great way of viewing images on the web, and it's really easy to make your Ruby on Rails app compatible. You just...

Formatting a date string for database use in Ruby on Rails


over 9 years ago by Paul Sturgess on paulsturgess.co.uk articles.
Sometimes you need to format a date / time correctly for database querying and sneaked into Rails 2.1 was a really helpful method for doing just that. Time...

Undefined method `fragment_cache_store=' Ruby on Rails error


over 9 years ago by Paul Sturgess on paulsturgess.co.uk articles.
The variable fragment_cache_store has now been replaced with just cache_store. So in my case I changed: ActionController::Base.fragment_cache_store =...

Ruby on Rails ActiveRecord::DangerousAttributeError


~9 years ago by Paul Sturgess on paulsturgess.co.uk articles.
If you get a Rails exception ActiveRecord::DangerousAttributeError then you'll find it's because one of your attributes is using a name reserved by Active...