Hi guys,
I've got a problem with linking unobtrusive js file with view.
I've got view named index.html.erb
...
<div id="fooBar">say bye!</div>
...
Also I've got js file index.js.erb
$("#fooBar").html("say hello!")
Currently I get say bye message, because javascript file are not executed.
What I'm doing wrong?
It seems to me that js.erb is not used for that purpose. And i just need to add script reference on normal .js file where view specific client logic is held
Thanks, Alexey