Rails public folder owner

I discovered today that the rails dispach files (cgi or fcgi) won’t run unless the group is the default. Changing the group on the public folder to a custom unix group I created no longer allows the rails app to run.

I’m not sure why this is true, can someone explain it?