umarepo_show.html.erb
<%@cook.images.each do |image| %>
<div class="cook_hoge">
<div class="cook_image">
<%= image_tag image %>
<% end %>
は、 <%= image_tag image %> でeachで回せる
<%@umarepos.each do |umarepo| %>
<%umarepo.images.each do |image| %>
<%= image_tag image %>
<% end %>
<% end %>
@umareposには、Umarepoクラスのオブジェクトの配列がはいっる。
imagesというメソッドのレシーバはUmarepoクラスのオブジェクトじゃないといけない。
結果、@umareposの中からひとつづつ取り出して、
umaprepo.images
とする。