Add rails4 permit action.