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...

As far as programming languages go, CSS is the least fun to write. Without variables, mixins or mathematical operations, it can be very time-consuming to write CSS and a nightmare to make changes.

Read more...