Forum: Ruby on Rails Search within an Add page

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Don C. (Guest)
on 2006-03-14 08:13
Newbie with RoR.  I have searched the net and looked at the PDF books
but without much luck.  Here is what I am trying to do:

I have a view which adds a new "part" to a list of parts for a supplier.
This works just fine.  However, one of the attributes of the "part" is a
foreign key to a list of manufacturers products.

I want to have the one "add part for supplier" view have a subform that
will allow the user to filter and select a manufacturer's product.

So a couple of questions:

1. How do I do a search view?  Can you suggest an example?

2. How can a view have more than one action button? In my case, I want a
"add" button for adding the part, and also a "search" button just to
filter the sub list of manufacturer's products.

thanks for any pointers.

This topic is locked and can not be replied to.