Version for rails 3