Displaying 1 result from an estimated 1 matches for "pricelist_id".
2006 Jan 04
3
How Can I solve this?
...lect name=pricelist>
<%= options_from_collection_for_select (@customers, "id", "name") %>
</select>
<%= submit_tag "Get" %>
<%= end_form_tag %>
CONTROLLER:
def get_article
@pricelist=Pricelist.find(??)
@articles=Article.find(@pricelist.pricelist_id)
end
i want to take the selected id (handed over as a parameter) from
customer and get in pricelist the record where
customer.id=pricelist.customer_id
thank you for your HELP!!!!!
--
Posted via http://www.ruby-forum.com/.