Hi all

irb is handy so check out:

shoes/samples/expert-irb.rb
(irb for shoes)
Might be nice to have an irb window open from the manual?

then in the command prompt try something like: (After you have run
expert-irb.rb)

require 'shoes/data'

This loads this file:
shoes/dist/lib/shoes/data.rb
if you go and have a look at the file you see it sets up a sqlite3
connection and database with tables

now if all is well and you type DATABASE you should get a print out

You now have everything you need to go and write your own data backend
(more or less) for shoes

Oh and the sqlite3 data file is created in the user home directory (I
use Ubuntu)
.shoes/+data (data_file = File.join(LIB_DIR, "+data")) - this seems
like a sensible spot but you can save it anywhere you have permissions
to

Hope this is helpful to someone

P

Reply via email to