input-many has a 'template' attribute that can be used:
<input-many template="&Foo.new(:bar => 17)"/>
>
> Any ideas?
>
> On a related note I have another field in the same <input-many> tag that I
> wanted to use :creator => true on the relationsahip. But when I include the
> field in the form it isn't defaulting to the current user.
>
> Here is the relationship as defined in the model
>
> belongs_to :field_tech, :class_name => "User", :creator => true,
> :conditions => "employee = 't'"
>
As far as I'm aware, that little piece of magic only happens for
generated forms, so you'll have to take care of it yourself here.
Here's one way to do it:
<input-many>
<hidden-field:field-tech-id value="¤t_user.id"/>
<field-list fields="..."/>
</input-many>
if you don't have hidden-field:
<def tag="hidden-field">
<%= hidden_field_tag(param_name_for_this, this, attributes) %>
</def>
Bryan