%h1 All hotels images %table %thead %tr %th Hotel %th Image %th %th %th %tbody - @images_hotels.each do |images_hotel| %tr %td= images_hotel.hotel %td= images_hotel.image %td= link_to 'Show', images_hotel %td= link_to 'Edit', edit_images_hotel_path(images_hotel) %td= link_to 'Destroy', images_hotel, :method => :delete, :data => { confirm: 'Are you sure?' } %br = link_to 'New Images hotel', new_images_hotel_path