Wednesday 30 September 2009
javan-whenever + WebFaction
I have had much trouble on a few different servers (including Webfaction) getting javan-whenever working with Capistrano and I finally started reading through Capistrano’s endless logging and discovered that the useful information (a descriptive, useful error message) was hidden away in a sea of useless noise - it turns out that sh simply w... More
Saturday 25 July 2009
New Wilderness Feature: Text Editor Preference
Added a new feature to Wilderness CMS system today - a preference that will change text areas from TinyMCE default to Textile, Markdown, Simple Format or plain. Comes with an accompanying helper for views. formatted_text(content) More
Wednesday 17 June 2009
javan-whenever with ec2onrails
After reading the Railscast about javan-whenever, a great ruby gem that allows you to write cron jobs in highly readable ruby with an impossible to forget syntax (compared to the daunting obliqueness of straight cron), I tried to get it running with a site I am working on that is deployed by http://www.ca... More
Tuesday 19 May 2009
My Recipe For Capistrano/Git Rails Deployment on Webfaction
The joys of Capistrano have long eluded me. I was well aware of the easy life of instant deploys that it promised, but getting it up and running on my WebFaction account proved an insurmountable task that always saw me giving up in frustration, I didn’t even try getting things going with Vlad. Every time I created a <... More
Saturday 09 May 2009
Cucumber + Paperclip
I just spent an inordinately long time trying to figure out how to get Cucumber tests to create records with Paperclip files attached. Those of you with an equally troglodytic IQ may thus find this snippet useful. The idea here, which is probably obvious, is that I have an upload-files folder in my Cucumber features folder in the root of the Rails application. I put the required sample files there. Be warned that this is actually saving the files to your public folder and they w... More
