Updated to rails 3.1.2 and split 0.3.1