Rails app as directory owner

I’m a real *nix dummy, so I hope you’ll forgive the stupid question…

How does the file system see a Rails app in terms of directory ownership? I’d like to create a directory that only the app can access.

Thanks,

Bill