One of the great things about Ruby on Rails is its philosophy of Convention over Configuration. Simply put, this means that developers are encouraged to name and organise their code in specific ways, and to stick to these naming principles wherever possible. The benefit of CoC is that developers spend...

Read more...

This is a nasty and naughty hack, and one I’m abashedly apologetic for.

Read more...

Recently I was working on a project which required various permissions for each controller. A user could have permission to access one feature of the site but not another.

Read more...

For my personal homepage I wanted to load the latest tips from Handy Rails Tips as well as my most recent Tweets on twitter. As these resources are stored on different sites from my homepage, there was a little lag when loading the landing page.

Read more...

I use factories instead of fixtures when testing. If you haven’t already discovered factories, check out this Railscast: Factories not Fixtures.

Read more...