I have no regrets because I devoted 100% to my work yesterday. Today's achievements.
・ Creation of customer data registration screen ・ Review of saving the intermediate table ・ Decorate with JavaScript (Click the button to open the menu)
For the create action, it is automatically linked and saved by describing {: users_id []} (although strong parameters are required).
I didn't know the mechanism of preservation perfectly, probably because I was forming an association, but I understand the mechanism. We will implement it from tomorrow.
Even though Id attribute information is available, it reloads and disappears as soon as I debug it in Chrome ...
function clickbutton(){
const pushPlusButton = document.getElementById("index-plus")
pushPlusButton.addEventListener('mouseover', function(){
console.log("aaaa")
})
}
window.addEventListener('load', clickbutton)
The description of console.log appears for a moment and disappears immediately ... I should have deleted the description of turbolinks, but was it useless?
We are struggling to implement it. .. .. ..
Recommended Posts