First tip, this is a very Rails specific question, best for the Rails  
list.