Rails unable to append partial using js

Here's the detailed one.
https://stackoverflow.com/questions/50209688/unable-to-append-a-partial-using-js-rails