Can I use Ruby with Shoes for GUI for a multiple choice test app?

415 Views Asked by At

I'm trying to make a simple multiple choice question app. Is this possible on ruby? I've tried using shoes but I don't know how to create multiple classes and a GUI that uses them. I'm also trying to connect all of this to a database. I'm having trouble in understanding how to connect all of this together.

1

There are 1 best solutions below

0
On

According to the comments the main problem seems to be with using the mysql gem part.

Gem usage depends on the version of shoes you are using. For green_shoes you should be good with the standard gems, but it is unmaintained. Shoes 3.1 has problems with gems that have C extensions (such as mysql). Shoes 3.2 should work. With Shoes4 you can't install the normal Ruby gems with C extensions as it uses JRuby and C extension support in JRuby is disabled. You have to use different gems to connect to the database, functionality is the same. A starting point might be activerecord-jdbc.