How to make multiple forms work

If I have a page with multiple forms that should correspond with 1
element each, how can I do this? For example, if I was listing
auctions and each one had a bid form (all on the same page), how can I
make it so that when a user decides to bid on an auction it knows
which form was entered?

On Dec 14, 2007, at 3:14 AM, Mike C wrote:

If I have a page with multiple forms that should correspond with 1
element each, how can I do this? For example, if I was listing
auctions and each one had a bid form (all on the same page), how can I
make it so that when a user decides to bid on an auction it knows
which form was entered?

A typical way to do that is to include a hidden input in each form
which uniquely identifies that form/record using the record ID (of
the item being bid on in your case).


def gw
acts_as_n00b
writes_at(www.railsdev.ws)
end

Alright, thanks! :slight_smile: