On 03/05/07, Thomas Weibel <[EMAIL PROTECTED]> wrote: > I couldn't figure out, how to create a drop-down list with Markaby. How > would I create something like this: > > <select name="character"> > <option value="marvin">Marvin the paranoid Android</option> > <option value="arthur">Arthur Dent</option> > <option value="zaphod">Zaphod Beeblebrox</option> > <option value="trillian">Tricia McMillan</option> > <option value="ford">Ford Prefect</option> > </select> > > with Markaby?
This works for me (Markaby 0.5)... html = Markaby::Builder.new do select :name => 'character' do option 'Marvin the paranoid Android', :value => 'marvin' option 'Arthur Dent', :value => 'arthur' option 'Zaphod Beeblebrox', :value => 'zaphod' option 'Tricia McMillan', :value => 'trillian' option 'Ford Prefect', :value => 'ford' end end _______________________________________________ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list