updated rails3 and rails4 templates