app/views/projects/_arcgis.html.erb
<% if @project.miga.metadata[:arcgis] %>
<style>
.embed-container {
position: relative; padding-bottom: 80%; height: 0; max-width: 100%;}
.embed-container iframe, .embed-container object, .embed-container iframe{
position: absolute; top: 0; left: 0; width: 100%; height: 100%;}
small{position: absolute; z-index: 40; bottom: 0; margin-bottom: -15px;}
</style>
<div class="embed-container"><iframe width="500" height="400"
frameborder="0" scrolling="no" marginheight="0" marginwidth="0"
title="MiGA Project Map"
src="https://arcgis.com/apps/opsdashboard/index.html#/<%=
@project.miga.metadata[:arcgis] %>"></iframe></div>
<% end %>