Not logged in (Log in or Sign up)

unwwwritten

26 posts

gem dependencies for plugins

another short and simple tip... you're writing a plugin for rails and want to specify the gem dependencies in the plugin itself (rather than …

cucumber/webrat and utf-8

If you are having a problem selecting an option on a form in cucumber/webrat and the option happens to contain foreign characters...DOH! Make …

note to self... rotate your logs

Stumbled upon this simple recipe for rotating rails logs when working with passenger. Saving it here for reference.this is it... /home/deplo …

an object at rest stays at rest

I think this is kinda nice. Say you want to use filters and sort orders with a restful controller using something like... /posts/by/created …

misguided neatness

A minor complaint to get things going again... Why is it that programmers feel the need to line a series of assignments up in columns? 1 …

The chairman of the bored

I bore easily. When doing something like watching TV, I tend to either channel surf, or hack, or program, or even read a book. So, when a ( …

A method to my madness

Sorry for not posting more frequently of late, but between the basement flood and the house renovations, and numerous other excuses, I just h …

has_many problems with validations

Today's gotcha has to do with using has_many and validations within the child model. In my use-case I need to create a parent record with on …

STI(ck) to it

Single Table Inheritance is a handy feature of rails to take advantage of. Unfortunately, there are many pitfalls waiting for you should you …

A good helper is hard to test

So, you want to test your helpers? I had been using the "helper_test" plugin, as described on nubyonrails.com. However, when I ran into a pr …

One or the other (but not both)

I ran into a validation today that rails didn't handle for me... or if it does, I didn't see how... I wanted a model to contain field values …

Capistrano rocks!

A few years ago, I stopped playing golf. Not really as a conscious decision, I just didn't quite have the time (or money) for it. If When I d …

Colour with a U (and a v)

Despite the fact that some of you may consider my spelling of the word colour an abomination, I hope that there are more of you that understa …

Authentication, publication and lockification

Not much to talk about here... although I'm sure I'll come up with more about these topics in a future post (especially user authentication). …

On being CONSTANT

So, I'm working on the syncer and stumbled upon something that surprised me (probably due to my C and C++ background). Constants are not cons …

Domain Specific Languages

So, the kiwi that worked with me (until last week) and I have been working on a mechanism for synchronising a legacy FileMaker database and a …

Bend it to your will - Episode III

In order to hook our plugin up to the ApplicationController (or any other controller class) we currently need to include the SimpleNav module …

Bend it to your will - Episode II

Last time, we looked at a helper that I wanted to add to the SimpleLog Site class. In order to use it in that form, I would have to modify al …

Bend it to your will

So, you've found an open source Ruby on Rails application that your think does something you need (say a weblog application). You install it …

Tweak it, tweak it goooood

Okay... slight depression setting in due to the drubbing that the Saints are taking at the hands of the Colts tonight, but it wasn't entirely …

Deep Red SimpleLog Theme

I'm closer to picking the look for this site. I've ported another WordPress theme to SimpleLog. You can download Deep Red from here. I'll …

SimpleLog Grid Focus Theme

For today anyway, I've changed my theme to Grid Focus, which I've just ported from WordPress (mostly as an exercise to see how much work it w …

Helping Improve a Good Thing

A couple of posts ago I talked a bit about SimpleHighlight. Today, I beat up the code a bit to support setting a couple of options for each c …

SimpleNav plugin for SimpleLog

SimpleNav SimpleNav is a mixin for the ActionController class and an accompanying Site helper that provide an easy way to add navigation lin …

Code it and they will run

My apologies to W. P. Kinsella (if indeed he is responsible for the original phrase)... Well, I was digging around through the SimpleLog for …

She canna go any faster, Captain

Well, after all my frustration at past attempts to run Ruby on Rails applications on HostMonster, it finally came time to get my blog up and …