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
Hello, thanks for this code. I've a problem using it. Modal Windows doesn't want to show.
I've got this trace :
I used scaffolding to generate Users.
The point I'm not sure to understand is where should I include _modal.html.erb. I put it in my
app/layout/applications.html.erb
using render. Does it correct ?Thanks for your help.
PS : I'm a newbie in ror and javascritp.