Thanks for the hint. I din't know that stacks and flows could be created
dynamically! Code based on suggestions found on Shoes wiki and web.
I think Shoes has an easy way of using active record now.
Shoes.setup do
  gem 'activerecord'
end

require 'active_record'

ActiveRecord::Base.logger = Logger.new(STDERR)
ActiveRecord::Base.colorize_logging = false

ActiveRecord::Base.establish_connection(
  #:adapter => "sqlite3",
  #:dbfile => "zinto1.db"
  :adapter => "mysql",
  :host => "localhost",
  :database => "izinto",
  :username => "user",
  :password => "password"
)

 ActiveRecord::Schema.define do
   create_table :izinto do |t|
       t.column :ntoni, :string
       t.column :phi, :string
   end
 end

class Zinto < ActiveRecord::Base
  set_table_name "izinto"
end


On Thu, Sep 25, 2008 at 3:59 PM, Hugh Sasse <[EMAIL PROTECTED]> wrote:

> On Thu, 25 Sep 2008, Thembile wrote:
>
> > I use SQLite with ActiveRecord to my data. What widget can I use to
> display
> > my data? Is there an html-table like widget?Sincerely.
>
> You can make a table with a stack of rows, each row being a flow.
> You can set the widths of each item in the flow.  There may be a
> better way, but that should get you a basic tabular layout.
>
> There's an active record program in the shoebox,
> http://the-shoebox.org/apps/76
> but I've not done anything with it.
>
>        Hugh
>

Reply via email to