udpates for rails 3