From: Jonny Noog Date: 2008-11-28T12:02:03+09:00 Subject: Re: eRuby/erb outside of Rails Post Tudbc wrote: > Try the free tool TudbcJRubyServlet > > http://www.tudbc.org/tudbcjrubyservlet > > which is backed by the robustness of any Java EE Servers (e.g. > GlassFish, Tomcat, Resin, etc.) Thanks for the suggestion. From reading a bit on your site, it sounds really cool. But honestly, I'm not sure if my current knowledge would be up to a trip through the Java world. I've never had any exposure to JRuby or Tomcat or really anything directly related to Java. How involved is setting up and using JRuby + Tomcat + tudbcjrubyservlet + Rails or erb compared to say, MRI + apache + mongrel + Rails (which I do have experience with)? Rob Biedenharn wrote: > On Nov 27, 2008, at 7:10 PM, Jonny Noog wrote: > >> functionality, but I prefer Ruby and in this case, I think Rails might >> allows embedded Ruby to be interpreted and served performantly and >> Posted via http://www.ruby-forum.com/. > It definitely depends on your hosting environment. On Joyent, it's as > simple as having: > > $ cat web/public/.htaccess > Action eruby-script /cgi-bin/eruby > AddHandler eruby-script .rhtml > > And then and file with an .rhtml extension will be run through eruby. > > -Rob Hmm, well it's likely that this website (plus a few others) will be running on a Linux VPS (probably CentOS). So I can pretty much to what I want with it. It's really down to how much time and effort it will take to get stuff set up and working the way I want. The VPS will no doubt already come with PHP/apache/MySQL already installed and configured, but I was really hoping that there is a relatively easy way for me to: a) Get some reliable standalone embedded Ruby action happening now (a la mod_php). b) Allow for the use of Rails in the future. But if things begin to look too involved, then I may just take the pragmatic appraoch and stick to PHP for now. -- Posted via http://www.ruby-forum.com/.