I would like to know, how to create oder update two models in one form.
and especially i think of a collection of models.
e.g. i have the model article and its related model article_price. the
edit-view is a table with an article and its current price in each row.
here’s an exception:
<%= start_form_tag :action => ‘updateAllArticles’%>
<% for @article in @articles %>
<% @price = @article.current_price %>
when i update the articles i use the described method:
but how do i have access to the articles. as i said, i have to check, if
the article_price is changed an the maybe create a new one…
I hope you can help me.