<%= render :partial => "list" %>
Inside this partial there is only one div. I would like to have a button in the top right corner of the div to close the div. I would like the button to “not render” the partial and just display the rest of the index.html.
How should I code the button in rails? It will be a small png. Thanks
in your layout
home.js
_list.html.erb