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.
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.