fix generator for rails4