Forum: Ruby-Gnome 2 displaying database

Posted by Mathias Diaz (mathid)
on 2012-09-22 22:06
HI, I'm new to Gtk and need to know how I can display a table from query
a database. I am using Glade to build the GUI.
Any information is welcome

Thanks!!
Posted by Grant Schoep (matobinder)
on 2012-09-24 17:42
So this really isn't a Gtk question too much, unless your asking how to 
display them. As for getting the data out of the DB/

What type of database? I use the oci8 gem for Oracle DBs.
http://rubygems.org/gems/ruby-oci8

It very simple to use. Just use that to grab the data you are looking 
for and then display it in your GUI however you want.
Posted by Eric C. (eric_c)
on 2012-11-12 08:56
Hi Mathid:

Typically rubyists use ActiveRecord to use databases.  I would urge you 
to look at this video that shows a really easy way to display records 
from any database in a listbox:

http://visualruby.net/site/ActiveRecord%20Tutorial.html

Yours,
Eric
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.