If you've got a belongs_to relation between OrderAssist and Food, thus:
class Food
has_many :order_assists
end
class OrderAssist
belongs_to :food
end
then you can do this:
<repeat with="&@foods">
<form with="&this.order_assists.build">
<% in here, this.food should be set correctly. <form> will (I believe) even create a hidden-field for it if you don't mention it in the field-list %>
</form>
</repeat>
You probably don't want to use OrderAssist.create in any case - that spams unattached records into your DB...
--Matt Jones