Fixed rails 3 integration