[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: POST/GET from sql database

Brian Candler

4/5/2007 5:29:00 AM

On Thu, Apr 05, 2007 at 05:42:38AM +0900, Josh Redding wrote:
> I'm new to Ruby...slowly picking it up as I go along. I wanted to write
> something I could put to use right now...a simple ruby-embedded html page
> that would save form data in to a sql database. I know this is ridiculously
> easy to do with rails...but I don't want to do it with rails. I'm
> semi-familiar with simple queries to a db using ruby...but can't seem to
> find much info on the rest...any ideas where I can find info for such a
> thing? I've combed through the 2nd-edition of the Pickaxe too..... *sighs in
> frustration*

There's an entire chapter in the Pickaxe called "Ruby and the web":
http://www.rubycentral.com/boo...

Start with the hello world CGI. Then extend it to use form variables. Then
extend it to perform a database query.

HTH,

Brian.