0
I have a product register in Rails. I am using Zurb-Foundation 5 as a lib in the Front-End. How do I call an inclusion form within a Modal Window in the Foundation. I created a partial with the form and tried to insert it into the div
to be called at the moment of the click but it doesn’t work. Trying to be more specific to facilitate. I have the URL:
localhost:3000/products
The index action should already list all available products and at the same time show the include button. When you click the button, you should open the modal with the damn inclusion form. I wanted to do CRUD operations without changing the URL to /new, /product/:id and so on. What I could do?
A bit difficult without seeing the code, but come on: you created your partial? (following _) and then just use: <%= render partial: "partial" %>
– Ronny Amarante
Yes friend. I created the partial. The problem of this approach that you mentioned, is the following:
– Pedro Vinícius