From: Sam Date: 2009-03-06T09:40:27+09:00 Subject: Re: CGI newbie Brian Candler wrote: > Sam wrote: >> I want to rewrite that and add to it using ruby and cgi. Does >> anyone have some good resources for rubg cgi programming? > > http://www.ruby-doc.org/docs/ProgrammingRuby/ > > Then click on "Ruby and the Web" > > However as others have said, a monolithic CGI which combines both the > application logic and the HTML is likely to suck. Look at Rails or > Sinatra - the first if you like big apps which do everything for you, > but you have to hunt through the docs to find what the feature you're > looking for you, and the latter for something small and easy to > understand, but you have to add in bits of functionality as you need > them. > Yes that is about the best example that I have found. Unfortunately searching google for "ruby cgi" yields many websites all with that same example (hence why I posted on here). Maybe I should have clarified this "app" better before. I need to make a couple of webpages for a small embedded router/bridge that will configure squid proxy and dansguardian. So pretty simple stuff like writing to text files and restarting services. I only have 300mhz and 128mb of ram to work with so I don't know if RoR would be the best idea? After spending most of today reading, I think my main weak spot is just html form/input processing since I have never done that before. I guess I might have to make a trip to the book store... Sam