From: "B. Randy" Date: 2008-06-12T22:21:12+09:00 Subject: Re: Webrick Hello Ellie, I use WEBrick and Erb too and I want get all data (a array whith 3 columns) from a big FORM, maybe by the POST method, but I've no idea how to make this :( You make a reference to yours slides. I've tried many times to "join" the group and to download the file without success. And the delay of communication is long, long, so long ! Have you an other place to get your presentation, or the solution could you help me to find the right solution ? :) Thanks. Eleanor McHugh wrote: > On 15 Mar 2008, at 11:20, abc- wrote: >> i'm new to ruby and tried some code to get a small application. >> I used Webrick to get a http server: > > I can't remember the details off-hand but if you look at my Camping > presentation at http://slides.games-with-brains.net/ you'll find some > simple examples of rolling WEBrick servers and integrating ERb is > fairly simple. > > I usually just add it into the String class as a handy > instance method: > > class String > def apply_erb > ERB.new(self).result > end > end > > so when generating the output for the server you'd have a line roughly > like: > > my_content.apply_erb > > where my_content is the variable holding the rhtml page text, or a > method that produces it. > > > Ellie > -- Posted via http://www.ruby-forum.com/.