My code looks like the following, but for some reason the rjs template
(index.js.erb) is not being rendered. I’ve also tried naming the rjs
file index.js.rjs with no luck.
respond_to do |format|
page << “var data = ‘Core
page << “$(’#example’).autocomplete(data);”
How does rails decide when to render an rjs file in addition to an html