local network

Can ruby on rails be shared in a local network, with no internet
conection?

Yes. As far as the network is concerned Rails is just another website...