[Personal application creation] Information management application production 16th day

I have no regrets because I devoted 100% to my work yesterday. Today's achievements.

What i did today

・ Creation of customer data registration screen ・ Review of saving the intermediate table ・ Decorate with JavaScript (Click the button to open the menu)

Save intermediate table

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.

JavaScript doesn't work at all

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

[Personal application creation] Information management application production 16th day
[Personal application creation] Information management application production 14th day
Personal application creation # 2
Personal application creation # 3
Personal application creation # 1
Personal application creation term
Personal application production diary 3
Task management application creation procedure
TECH CAMP learning personal application creation ②
Personal application production 2 Introduction of WEB fonts