Conditional formatting or alert in rails 3
===

I'm writing a dispatch app that displays a basic list of information such as:

Incident Number, Unit Assigned, Call type, Transfer date, etc.

What I'm wanting to do is throw up some sort of JS alert or conditional CSS that says when the transfer date is within 30min of Time.now.  Sort of an alert letting the end-user know that the call record needs attention.

I'm thinking I could write some sort of helper that would format the call field(s) in red and have it triggered by JS.

The problem is I have no idea where to start.  Not sure if I should put the logic in a Rails helper or in JS and how to do it.

Any help is appreciated.