[Nitro] Hash and field name

Emmanuel Piperakis epiperak at softlab.ece.ntua.gr
Wed Sep 21 02:13:05 EDT 2005

Can George give a very sort example on how to use Hash object in a 

eg I have the object

class Myobj
   property :testobj, Hash
   def initialize
     @testobj = Hash.new
     @testobj["key1"] = nil
     @testobj["key2"] = nil

in the template I would like to have 2 seperate fields, one for each key 
of the hash. How should I name them in order for the .fill to work? Is 
this supported?

<input id="???" name="???" type=text />

Thanx George (and sorry for wasting your time) but after reading the code 
for fill (in context.rb) I can not understand how it works... :-(

Emmanouil Piperakis (epiperak at cs.ntua.gr)
{To explore is Human, to Create is Devine,
  To teach is Primal, to Rule is Sin}

More information about the Nitro-general mailing list