Hi all, I''m just getting started with this book, it''s very well written and actually pretty fun to read. However, as a Java web app developer hoping to use Rails for my next application I did a couple searches through the pdf to try to find out about the following requirements, unfortunately they were not addressed or did not seem possible (I hope it is only the former). If anyone can shed light on these I would greatly appreciate it: 1- WEBrick: According to the book WEBrick is not attractive for heavy duty use. What is this defined as? Will WEBrick become powerful enough in future versions or is this just the way it was designed? Is "WEBrick is to Rails apps as Tomcat is to Java web apps"? 2- Compiling Ruby code: I know it''s not compiled, but what are my options if I want to deploy an app without giving the source code? 3- Accessing 2 databases: The book says it is not possible to update 2 databases together (I think... ). What about updating two databases independently (w/out two phase commit), or reading from one database and reading/updating another? 4- Generating PDF files? Thanks! Abdullah
Hi Abdullah, I will try to answer a couple of your questions.> 1- WEBrick: According to the book WEBrick is not attractive for heavy duty use. > What is this defined as? Will WEBrick become powerful enough in future versions > or is this just the way it was designed? Is "WEBrick is to Rails apps as Tomcat > is to Java web apps"?I am no Java expert, but as far as I know Tomcat is a viable deployment solution for Java, maybe not the fastest. WEBrick is a web server completely written in Ruby. It was not written with great performance in mind, but rather with flexibility in mind. If you need absolute best performance you must look at www.lighttpd.net. Deployment platform for this would be Linux/BSD/Unix.> 2- Compiling Ruby code: I know it''s not compiled, but what are my options if I > want to deploy an app without giving the source code?I don''t know of any solutions to this. I think you could certainly make a buck if you were to develop and sell something like that, since this would clearly be aimed at commercial users.> 4- Generating PDF files?gem install pdf-writer Sascha
Thanks for your reply. I just found this page on the Rails site: http://wiki.rubyonrails.com/rails/show/HowtoGeneratePDFs Would you recommend pdf-writer over the other three, and what are the reasons? Thanks, Abdullah --- Sascha Ebach <se-eFwX6J65rk9VioaHkBSlcw02NpfuEekPhC4ANOJQIlc@public.gmane.org> wrote:> Hi Abdullah, > > I will try to answer a couple of your questions. > > > 1- WEBrick: According to the book WEBrick is not attractive for heavy duty > use. > > What is this defined as? Will WEBrick become powerful enough in future > versions > > or is this just the way it was designed? Is "WEBrick is to Rails apps as > Tomcat > > is to Java web apps"? > > I am no Java expert, but as far as I know Tomcat is a viable deployment > solution for Java, maybe not the fastest. WEBrick is a web server > completely written in Ruby. It was not written with great performance in > mind, but rather with flexibility in mind. If you need absolute best > performance you must look at www.lighttpd.net. Deployment platform for > this would be Linux/BSD/Unix. > > > 2- Compiling Ruby code: I know it''s not compiled, but what are my options > if I > > want to deploy an app without giving the source code? > > I don''t know of any solutions to this. I think you could certainly make > a buck if you were to develop and sell something like that, since this > would clearly be aimed at commercial users. > > > 4- Generating PDF files? > > gem install pdf-writer > > Sascha > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Abdullah Jibaly wrote:> Thanks for your reply. I just found this page on the Rails site: > > http://wiki.rubyonrails.com/rails/show/HowtoGeneratePDFs > > Would you recommend pdf-writer over the other three, and what are the reasons?Oh, I don''t know. I only knew that there was a PDF package for Ruby which seemed very nice. I cannot recommend either one because I haven''t used them. I just wanted to give you a push in the right direction :) But, do let us know if you have success with it. Sascha
On 7/23/05, Abdullah Jibaly <amjibaly-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:> Would you recommend pdf-writer over the other three, and what are the reasons?We use pdf-writer to generate PDFs on the fly from user-supplied form data (the final result is then sent to a SOAP fax gateway). It works a charm, very easy to use too. I haven''t tried the alternatives. Ben
On Fri, 2005-07-22 at 12:11 +0200, Sascha Ebach wrote:> > 2- Compiling Ruby code: I know it''s not compiled, but what are my options if I > > want to deploy an app without giving the source code? > > I don''t know of any solutions to this. I think you could certainly make > a buck if you were to develop and sell something like that, since this > would clearly be aimed at commercial users.You could use RubyScript2Exe, which is a fine piece of work by Erik Veenstra: http://www.erikveen.dds.nl/rubyscript2exe/index.html Here''s the RubyForge project: http://rubyforge.org/projects/rubyscript2exe/ Yours, Tom
Thanks, I''ll definitely keep this in mind! --- Tom Copeland <tom-rlPNtO1eV9h54TAoqtyWWQ@public.gmane.org> wrote:> On Fri, 2005-07-22 at 12:11 +0200, Sascha Ebach wrote: > > > 2- Compiling Ruby code: I know it''s not compiled, but what are my options > if I > > > want to deploy an app without giving the source code? > > > > I don''t know of any solutions to this. I think you could certainly make > > a buck if you were to develop and sell something like that, since this > > would clearly be aimed at commercial users. > > You could use RubyScript2Exe, which is a fine piece of work by Erik > Veenstra: > > http://www.erikveen.dds.nl/rubyscript2exe/index.html > > Here''s the RubyForge project: > > http://rubyforge.org/projects/rubyscript2exe/ > > Yours, > > Tom > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
I have been considering migrating a web application in use at work into a Rails environment. Its old and clunky and needs a refresh, so I figured Rails might be worth a shot at giving it new life and functionality. It currently uses PEAR in PHP to generate formatted Excel files and uses the GD library to create graphs indicating specific visitor statistics. Do any such modules in rails exist to create such functionality? I may be able to simply output the excel data into a CSV, but the image create is crucial... ideas? --Alan