Here is the code from my controller:
def dvbd
@dimvers = 'Hello'
respond_to do |format|
format.js
end
end
Here is what is in dvbd.js.erb:
$("#dave").html("<h2><%= @dimvers %></h2>");
I expect the code to put the value of @dimvers
between h2 tags in the Dave div. Thus far, only the h2 tags get populated. So, for some reason <%= @dimvers %>
isn't being accessed or read, but I don't know how.