Currently I’ve only seen buttons that refer to specific paths like:
<%= link "Show", to: Routes.access_key_path(@conn, :show, access_key), class: "btn btn-default btn-xs" %>
This will link you to another page in your router.
I want to have a button that will popup a small input to push into a function.
More specifically I want to send an email with the current access_key to the given email from the popup input which is sent to a function with a predetermined subject and a reference to the access key.