Forum: Ruby-Gnome 2 displaying database

3f5db6e610daddd0f84ea6868ce39e94?d=identicon&s=25 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

C53e81f5d7c781c6dc3979c4ce888706?d=identicon&s=25 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.

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.
0d130f179f85401f248e6ebc2ef8292f?d=identicon&s=25 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:

Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.