compat rails 3