Re: How to configuration rails upload directory in tomcat?

2010-10-19 Thread Pid
On 19/10/2010 02:25, Ray Sun wrote: Thanks all your response, let me clarify: Here's my development environment: OS: Windows 7 6.1 x86 Tomcat: Apache Tomcat/6.0.26 Java: jdk1.6.0_21-b07 Jruby: jruby 1.5.1 (ruby 1.8.7 patchlevel 249) (2010-07-28 6586) (Java HotSpot(TM) Client VM 1.6.0_21)

How to configuration rails upload directory in tomcat?

2010-10-18 Thread Ray Sun
My basic requirement is upload and show image. I use rails on jruby and warble package the project as war on windows. In rails, I set my upload directory as '#{Rails.root}/public/data/users'. And it works on common rails light server like webrick. But after I deployed to tomcat, the 'public'

Re: How to configuration rails upload directory in tomcat?

2010-10-18 Thread Pid
On 18/10/2010 18:11, Ray Sun wrote: My basic requirement is upload and show image. I use rails on jruby and warble package the project as war on windows. In rails, I set my upload directory as '#{Rails.root}/public/data/users'. And it works on common rails light server like webrick. But after

Re: How to configuration rails upload directory in tomcat?

2010-10-18 Thread Ray Sun
Thanks all your response, let me clarify: Here's my development environment: OS: Windows 7 6.1 x86 Tomcat: Apache Tomcat/6.0.26 Java: jdk1.6.0_21-b07 Jruby: jruby 1.5.1 (ruby 1.8.7 patchlevel 249) (2010-07-28 6586) (Java HotSpot(TM) Client VM 1.6.0_21) [x86-java] Here's my development step: 1.