From: Dick Davies Date: 2008-11-28T19:12:11+09:00 Subject: Re: eRuby/erb outside of Rails Why would you use this rather than Warbler (for example)? On Fri, Nov 28, 2008 at 1:39 AM, 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.) > > Jonny Noog wrote: >> Hello, >> >> I am currently working on planning for the redevelopment of a website. >> This website will be mainly static, the only dynamic functionality that >> I am envisioning is some server-side includes to make maintenance >> easier, perhaps a form or two that sends an email etc. No database >> backend at this stage. >> >> I could very easily use straight up PHP to give me this kind of basic >> functionality, but I prefer Ruby and in this case, I think Rails might >> be a bit heavy for what I am looking at. So I'm thinking about >> eRuby/erb. >> >> I have read about mod_ruby and mod_rails. Some sources seem to suggest >> that mod_ruby "has never really worked properly", while others seem to >> suggest otherwise. I have not been able to ascertain whether mod_rails >> would allow the use of eRuby/erb without Rails to go with it. >> >> So my questions are: Does anyone have any experience with a set up that >> allows embedded Ruby to be interpreted and served performantly and >> reliably in (X)HTML pages (say under the .rhtml extension) in much the >> same way that mod_php does with .php files (I gather this is what >> mod_ruby is meant to do, but I have read many mixed reviews)? And does >> mod_rails/mod_rack hold any promise in this regard? >> >> Ideally a solution that would allow embedding and serving of .rhtml >> files outside of a Rails app but also allow the deployment of a full >> Rails app, say in a sub-domain or something would be awesome, but I'm >> happy to take it one step at a time. > > -- > Posted via http://www.ruby-forum.com/. > >