Hi all,

I'm creating a command line library program for tracking which books I
own. I've decided to use SQLite3 for data persistence. I've included the
necessary files to run my program as it stands right now.

The issue I'm having is that there is unwanted duplication in my
#view_library results hash, and I haven't the slightest clue why.

If you run library_client.rb from the command line and type '1' as your
choice, the output shows duplication in the books.db file. I'm not sure
if this has something to do with line 9: $db.results_as_hash = true or
not.

I've commented out the code as I would like to have it between lines 20
and 24, but right now it doesn't function properly because of the
duplicate information that has integers as hash keys.

As always, any help is greatly appreciated!

~Mike V.

Attachments:
http://www.ruby-forum.com/attachment/9070/library_client.rb
http://www.ruby-forum.com/attachment/9071/books.db


-- 
Posted via http://www.ruby-forum.com/.