This is a fairly simple question, but I cannot find a good answer for it. I have a page in my Rails application where there are many objects that can be tagged. Pressing the flag button should display a small box with confirmation, small form, etc. The problem is that I cannot figure out how to do this using RJS templates.
I used page.insert_html, but this requires an identifier. To do this, I had to assign every thing that could be marked with a unique identifier. This does not seem very clean and still leaves me thinking about displaying only one shape and that the field disappears when applied. Is there a simpler solution to this problem? I really want to create something similar to the checkboxes that appear on SO for the flag. Sorry, I'm relatively new to RJS templates. Thanks.
source share