Phil McClure

When I’m commuting into work I generally give BBC Radio 1 a miss and listen to podcasts in the car. So given I’ve been doing it for a while now, I thought I would share ones that have stood the test of time. There aren’t very many, I like to keep ...
I finally got round to making the relevant changes to allow the green_light gem to work with Rails 4. This has been long overdue since there are quite a lot of legacy apps making use of it. There is one main difference to take note of in this re...
I've been learning French over the past few months and, along the way, I've been trying to nail down a solid method for how to tackle learning a language in the most efficient way. This blog post is my thoughts on some of the interesting methods ...
Maybe it's me, but there seems to be a severe lack of good client-side validation plugins, which integrate with ActiveModel. So, my employer, Rumble Labs kindly gave me some time to write one of our own, for use with internal projects and persona...
This one always troubles me each time I need to re-install Ubuntu. The solution? sudo apt-get install ncurses-term Done.
Just upgraded one of my apps from Rails 3.0.0rc4 to Rails 3.0.0. One issue - all the forms disappeared! After doing some hunting, I found that the issue was being caused by the HAML gem. To fix this, upgrade to the 3.0.18 release of the HAML ge...
In a previous article, I talked about using subdomains in Rails 3. Since then, many people have elaborated on the topic. There's even been a great Railscast. I've found Tim Pope's post particularly useful. Basically, he has set up a domain name...
Sometimes it's useful to interact with your controllers via the console. This, as you may know, can be achieved with the app object. You can perform GET, POST, PUT and DELETE requests by doing the following. If you need to login to your Rails a...
While upgrading one of my Rails 2.3 apps to Rail 3, I came across a few issues when using subdomains with a localhost domain. I have a route like so:- root :to => 'controller#page', :constraints => {:subdomain => "subdomain1&am...
I was getting a ActionController::InvalidAuthenticityToken destroy error when using the Destroy method in my Rails 3 app. Turns out, when I was migrating to Rails 3, I forgot to include this in the html header:- I couldn't find a solution anywhe...