Delete link not working phoenix

后端 未结 5 1933
遥遥无期
遥遥无期 2021-01-04 11:09

I\'ve used Phoenix\'s built in gen.HTML to generate a simple view but it\'s not working

<%= link \"Delete\", to: event_path(@conn, :delete, event), method         


        
5条回答
  •  时光说笑
    2021-01-04 11:45

    For anyone else hitting this I had a completely different problem that manifested itself in the same way, will drop this here in case it helps:

    It turns out I accidentally deleted import "phoenix_html" from the app.js file mistaking it for being part of the generated boilerplate, adding it back fixed my issue.

提交回复
热议问题