I want to prevent my users to read my ruby code.
Are there some efficient tricks to do that (apart from executing my code on a server) ?
There are gems like Tar2RubyScript, RubyScript2Exe which help you distributing your ruby code. You can read http://www.erikveen.dds.nl/distributingrubyapplications/rails.html for more information