I know this question is asked a lot in old posts
but, no one has fixed my problem. The problem is an error in the web console
TypeError: e is undefined
ReferenceError: ubah_tampilan_menu is not defined
I tried to execute an html.erb file
<% RuangDepanController::Daftar_Menu.each do |m| %>
@ubah_tampilan_menu = (menu) ->
xhr = new XMLHttpRequest()
xhr.onreadystatechange = ()->
document.getElementById("Pertujukan").innerHTML = xhr.responseText
on localhost: 3000 of these codes work well. But after deploying heroku I received the message above. First I looked for the function and I found it in the web debugger. I use Rails 5.2.2 and Mozila Firefox. Any idea?
(Sorry for bad English)
Join 24,647+ developers who get early access to new screencasts, articles, guides, updates, and more.