ActiveSalesForce YAML Dump


~11 years ago by Ian Blenke on Ian C. Blenke.
Starting down the ActiveSalesforce path, my first goal was to do a simple dump of a class of objects to yaml using the API. $ gem install activesalesforce...

Running Ruby on Rails on OS X with Mongrel and MySQL


~11 years ago by Paul Sturgess on paulsturgess.co.uk articles.
This is not so much an installation guide, but some general notes regarding how I went about getting Ruby on Rails running on Mac OS X 10.4 (Tiger) from...

Debugging tips in Ruby on Rails


~11 years ago by Paul Sturgess on paulsturgess.co.uk articles.
There are quite a few different ways to go about analysing application errors in Ruby on Rails. I know when I first started out I found the error messages...

Select and collect with conditions in Ruby on Rails


~11 years ago by Paul Sturgess on paulsturgess.co.uk articles.
I really needed an option collection for a select box with confitions. In my case it needed to list vacancies people could apply for, but only if the vacancy...

paulsturgess.co.uk relaunch


~11 years ago by Paul Sturgess on paulsturgess.co.uk articles.
A re-build was on the cards for a while and, all in all, it's taken a few months to get this site up and running. Initially I had planned a php based site...

How to specify the number of decimal places displayed in Ruby on Rails


~11 years ago by Paul Sturgess on paulsturgess.co.uk articles.
The sprintf Ruby class provides the ability to specify the number of decimal places to display. sprintf("%.1f",track.ratings.average('rating')) In this...

How to pass an instance variable to a rendered partial in Ruby on Rails


~11 years ago by Paul Sturgess on paulsturgess.co.uk articles.
Passing a variable to a partial means you can be clever about re-using your code to output different collections of data in the same way. Essentially you...

Getting Ruby on Rails running on Bluehost


~11 years ago by Paul Sturgess on paulsturgess.co.uk articles.
Getting my site working on Bluehost wasn't entirely straight forward but now it's running there shouldn't be any more difficulties. If you're attempting...

Spring CSS Reboot - Out of the dark and into the light


~11 years ago by Paul Sturgess on paulsturgess.co.uk articles.
Hopefully you should be seeing my new look and feel as part of the Spring CSS Reboot. The dark colour scheme of old has not gone forever; I have plans...

Tagging with Ruby on Rails


~11 years ago by Paul Sturgess on paulsturgess.co.uk articles.
Large credit goes out to The Rails Diary for helping me get the tags going on this site. I wanted a many to many relationship between the aritcles and...