From: Josh Cheek Date: 2011-10-07T12:53:37+09:00 Subject: Re: How to upload a simple ruby file to a webpage --bcaec51d22ee4195dd04aead60de Content-Type: text/plain; charset=ISO-8859-1 On Thu, Oct 6, 2011 at 9:57 AM, T J Pereira wrote: > I have finally managed to program simple formulae in Ruby for my work.My > problem now is how to upload this on to my web page and use it online in > an interactive manner or as a standalone file similar to an .exe or some > other packaged file. Yes i have read about gems, RoR, Sinatra and > smaller webframe work etc..but how do i do it with a file. Can anyone > help me here with this, either by sending me a link of the steps > involved or just > send me the steps in uploading a packaged ruby file. Attaching a file > with a simple formula in chemistry. Would really appreciate it. Thanking > in advance. > > Attachments: > http://www.ruby-forum.com/attachment/6661/test.rb > > > -- > Posted via http://www.ruby-forum.com/. > > Hi, this isn't going to work, try instead creating a form with fields for the things you are getting from "gets" and posting to a url that renders back the result. I'd recommend Sinatra for this (or even pure rack), if you need some idea of how to do this, check out Ruby Kickstart session 6 http://ruby-kickstart.com/#session6 It assumes you've worked through the previous five sessions, but it will show you how to create a Sinatra application and host it on the internet (Heroku). --bcaec51d22ee4195dd04aead60de--