This is a Rails 5 adaptation of an answer to a StackOverflow question regarding using jQuery UJS to display AJAX-retrieved content in a modal. Here is the original answer:
http://stackoverflow.com/questions/5766055/jquery-modal-windows-and-edit-object/5766232#5766232
Hi, and thanks for the tutorial, it helped me a lot!
I'm having a problem on the very last step of the ajax stuff. In this line
https://gist.github.com/coreyward/1456815#file-modals-js-coffee-L13
data
andstatus
are undefined. Do I need to do something special in my method? I have