are you sure it will be still valid next week?:) also, would it be possible to write it in a more rails-friendly way?