Not to expose the code in production

Rails is rocking!!

Any idea on how to hide the rails code in the form of some executable in
the production environment, as it is highly vulnerable and the code is
getting exposed to the outer world.

Any alternative ways??? if not a direct way…