% page_title "API Key" %>
| API Key | Created | Updated | Actions |
|---|---|---|---|
<%= @api_key.key %> |
<%= compact_time @api_key.created_at %> | <%= compact_time @api_key.updated_at %> | <%= button_to "Regenerate", user_api_key_path(CurrentUser.user), method: :put, params: { 'user[password]': @password }, remote: true %> <%= button_to "Delete", user_api_key_path(CurrentUser.user), method: :delete, params: { 'user[password]': @password } %> |