Archive image

Archive for April, 2014

Resurrecting a Rails 2.x app

This morning I had to give a client an estimate for some work they wanted doing on a Rails 2.1.2 app.

The work itself wasn’t overly complicated, but getting a system up and running using Ruby 1.8 and Rails 2.1 proved to be somewhat of a challenge.

Here’s how I did it.

Read more…

Creating a Simple Style Switcher

I see quite a few questions on how to persist state (of a checkbox, for example) between page reloads, so decided to write a tutorial on how this might be achieved.

In the tutorial I show how to make a simple style switcher, not because the world needs another style switcher, but rather to demonstrate this technique using a half-way to realistic example. I also took the opportunity to show how to attach event handlers unobtrusively (without jQuery) and manipulate an element’s style.

Read the complete article on SitePoint