What's the right place to put javascript/coffeescript in Rails when working with partial being loaded via AJAX?
I would like to call:
$('.selector').datapicker()
every time '_form' partial is loaded.
I can put this directly into the _form.html.erb partial and it would work like expected but I kinda feel like it's a wrong holder for js.