change the code syntax in read me file to rails 3