[Rails] Re: executing jar files from within rails app

2010-03-30 Thread senling
dows environment, change the path to the java according to the java directory installed in your machine. retResult = system("/home/user1/java/jdk1.6.0_07/bin/java -jar Sample.jar #{args1} #{args2}") end #chdir end If you get error while running this, please post the error h

[Rails] Re: executing jar files from within rails app

2010-03-30 Thread senling
dows environment, change the path to the java according to the java directory installed in your machine. retResult = system("/home/user1/java/jdk1.6.0_07/bin/java -jar Sample.jar #{args1} #{args2}") end #chdir end If you get error while running this, please post the error h

[Rails] Re: executing jar files from within rails app

2010-03-28 Thread senling
You can use system call to execute jar file. # Change to the directory where jar resides Dir.chdir("#{RAILS_ROOT}/public//") do # Execute jar retResult = system(" -jar .. ") if retResult Jar executes succesfully else error in executing jar file. end #chdir Thank

[Rails] Re: Problem with file_field

2010-02-19 Thread senling
ileName = data[:datafile].original_filename filePath = "#{RAILS_ROOT}/public/data/#{orig_fileName}" file_data = data[:datafile].read File.open(filePath,"wb"){ |f| f.write file_data } end Thanks Senling On Feb 17, 2:18 pm, Michael Pavling wrote: > On 17 February 2010 05:58, Greg Ma

[Rails] Using YM4R/GM plugin in rails.

2010-02-09 Thread senling
I have installed YM4R/GM plugin. I'm using Rails 2.3.5. After installing, i could'nt start my application. it shows, Application error Rails application failed to start properly. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to

[Rails] Re: install gems problem in windows

2010-01-28 Thread senling
There is no rails gem installed in my system. Thanks senling On Jan 29, 10:57 am, kannav rajeev wrote: > uninstall rails then ruby restart system then make all processes in better > mannered way . > > > > On Fri, Jan 29, 2010 at 11:25 AM, senling wrote: > > Hi, > &

[Rails] install gems problem in windows

2010-01-28 Thread senling
Hi, I have installed ruby and trying to set rails environment. >ruby -v ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] >gem environment RubyGems Environment: - VERSION: 0.9.4 (0.9.4) - INSTALLATION DIRECTORY: C:/Ruby/lib/ruby/gems/1.8 - GEM PATH: - C:/Ruby/lib/ruby/gems/1.8

[Rails] Re: Rails gem download problem

2010-01-28 Thread senling
Yes, you saved my time. Regards: senling On Jan 28, 7:24 pm, kannav rajeev wrote: > try to download from gemcutter > > > > On Thu, Jan 28, 2010 at 6:43 PM, senling wrote: > > Hi, > >  I'm setting the rails environment in my windows machine. > > &

[Rails] Rails gem download problem

2010-01-28 Thread senling
ize is 279 kb and it took 2 hours to download. What is the problem. again the same downloading issue in rails gem also. Is there any other site to download gems ? Thanks in advance Senling -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:

[Rails] Re: Rails Render Issue

2010-01-22 Thread senling
Rendering rescues/layout (internal_server_error) * On Jan 22, 4:19 pm, Colin Law wrote: > 2010/1/22 senling : > > > > > Hi, > >  I am adding login functionality to my app which has two controllers > > user and photos an

[Rails] Re: Rails Render Issue

2010-01-22 Thread senling
Rendering rescues/layout (internal_server_error) * On Jan 22, 4:19 pm, Colin Law wrote: > 2010/1/22 senling : > > > > > Hi, > >  I am adding login functionality to my app which has two controllers > > users and photos and

[Rails] Rails Render Issue

2010-01-22 Thread senling
irects to http://www.example.com/photos and the page displays correctly. When i access the main url http://www.example.com i got this error : Missing template photos/_index.erb in view path app/views I am working with rails 2.3.5 Any sugestions? Thanks in advance Senling -- You received