From: Simon Krahnke Date: 2008-04-26T18:35:06+09:00 Subject: Re: How to return more than one object to a block * Ivan V. (20:43) schrieb: > I'm kinda new to blocks, and I'm trying to create my own Rails form > builder, which I want to work like this: > > form_for ... do |f| > f.form_label 'Some label' do > f.text_field :something > link_to 'somewhere', somewhere_path > end > end Normally you pass that a parameter that represents the form_label, so that the block can do something with it. Just like the form block does, it's passed f, which represents the form. You better Rails stuff on some Rails list. mfg, simon .... l