Stubbing case statements with Mocha

I was happily mocking away with Mocha, then I passed a stub to a case statement at which point I was a little flummoxed. The Ruby documentation clearly states that the ‘when’ in a ‘case’ statement uses the ‘===’ method for comparing the subject so I couldn’t work out why something like the following wasn’t […]

Git – setting up a remote repository and doing an initial push

There is a great deal of documentation and many posts on Git out there, so this is more of a note to self as I keep forgetting the steps needed to set up a remote repository and doing an initial “push”. So, firstly setup the remote repository: ssh git@example.com mkdir my_project.git cd my_project.git git init […]

Storing .js files and .css files in 'js' and 'css' directories in Rails 2.2

In the years I have been working with Rails I have generally been happy to follow the conventions that it enforces. There is one that just doesn’t sit right with me and that is the decision to store .css files in a ‘stylesheets’ directory and .js files in a ‘javascripts’ directory as I prefer ‘css’ […]

Proprietary CSS rules – Are we returning to 1995?

Call me a cynic, but posts like this one on the Surfin’ Safari blog worry me a little. Let me explain… I don’t know if anyone remembers back to the days of Netscape 4 and Explorer 3.5? – It was a time of table based layouts and browser sniffing. Each browser had it’s own “feature” […]

SonicIQ are hiring – Junior Rails Developer Wanted in UK

“SonicIQ”:http://www.soniciq.com are looking for a “Junior Ruby on Rails Developer”:http://jobs.37signals.com/jobs/1203. We are based in Bournemouth, Dorset, UK. Anyone interested in working professionally with Rails on some exciting projects please “drop us your CV”:http://jobs.37signals.com/jobs/1203.