For some reason, the modal does not appear when calling it with Foundation 6, I do it by means of a partial, I leave the code friends, maybe they can give me a solution, which I find strange because with other frameworks of styles like Materialize, Bootstrap I do not have any problem:
form.html.erb
<div class="reveal" id="exampleModal1" data-reveal>
<%= form_for @product, remote: true, authenticity_token: true, html: { multipart: true } do |f| %>
<% if @product.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@product.errors.count, "error") %> prohibited this @product from being saved:</h2>
<ul>
<% @product.errors.full_messages.each do |message| %>
<li><%= message %></li>
<% end %>
</ul>
</div>
<% end %>
<div class="field">
<%= f.label :name %>
<%= f.text_field :name %>
</div>
<div class="input-field">
<%= f.file_field :image %>
</div>
<div class="actions">
<%= f.submit %>
</div>
<% end %>
</div>
new.js.html
$('#exampleModal1').html('<%= j render "form" %>').foundation('open');
Link
<%= link_to "Agregar producto", new_product_path, remote: true, :data => { :'open' => 'exampleModal1' } %>
javascript.js
//= require jquery
//= require jquery_ujs
//= require foundation
//= require what-input
//= require turbolinks
//= require_tree .
$(document).ready(function(){
$(document).foundation();
});