Compile .rb into .class and include in war

I have one rails application, It is working on tomcat after deploying
the war created by warbler.
But my requirement is that i dont want to give my code to client in any
form even in war file. so to achive this i tried to compile all .rb
files into .class files and then created the war(includes class file, no
rb files) of it. Then i have deployed this war onto tomcat but it is not
working.

When i hit the url from browser it gives -

Routing Error

No route matches “/book/list” with {:method=>:get}

War file which includes rb files works propely on tomcat but war with
class files does not.
Any pointers to this would be really helpfull.

Hi,

I had this same problem… I think we succeed by creating empty rb files
corresponding to class file

Marc

2010/5/27 Web D. [email protected]

how did you compile all your rb files? Were they any faster after
compiling?

On Fri, May 28, 2010 at 10:53 AM, dark attraction
<[email protected]

you need to unzip the war file in a temp directory and compile all rb
files
(or only those who want to compile) and recreate it.
I didn’t notice any change, but my main goal was to hide the code, not
to
see if there is any improvement.

Marc

2010/5/28 AD [email protected]