"Quick View of Pieces", now cookie-driven, boolean conversion
I ran into some trouble implementing this until I realized that when you read and write to a cookie, you have to do so with a string. I was trying to set a boolean value, and like-wise when I was reading the value out I was treating it as a boolean. Ruby no-likely. (As opposed to Coldfusion which just automatically converts the value for you.)
In order to get around this problem I wrote a little converter function. It takes a string, and converts it to a boolean. (See code here.) (For all you Ruby guys out there...) If there is an easier way of doing this, or something in Ruby that already does this conversion, please let me know.







