Home
Position: 主页>ruby>

eRuby and HTML

Time:2010-01-22 03:24soucre:未知 作者:admin click:clicks
I am using eRuby on a Linux server. I have my Web pages on the server and can access them. 1. I want to query my PostgreSQL DB. 2. Parse the data into an Array 3. Use eRuby to update my Web pages with the Array. Does any body out there have code I cou

   I am using eRuby on a Linux server. I have my Web pages on the server and can access them.

1. I want to query my PostgreSQL DB.

2. Parse the data into an Array

3. Use eRuby to update my Web pages with the Array.

Does any body out there have code I could have to get me started?

Thanks in advance. ||| Rails can do all of this for you..... but if you prefer to roll your own, check out Ruby/DBI http://ruby forge.org/projects/ruby -dbi

------line----------------------------
Recommend
Hottest