I'm attempting to accomplish a seemingly simple task that is proving quite challenging. My goal is to conceal a render or partial in a specific view within my Rails application. Despite my efforts to find a solution, I have not come across any working examples.
Below is the snippet of code I am working with:
<p id="notice"><%= notice %></p>
<br>
<CENTER><p>
<h2>BOOK DETAILS</h2>
</p>
...
In the last line, there's a render tag (<%= render "baptism_items/form" %>) that I would like to show/hide when clicking on a link or button. Can someone provide assistance on achieving this functionality?