From 8d7cbda26af2ed4d7f3c828dada40b322a074aca Mon Sep 17 00:00:00 2001
From: Eugene Burmakin
+ Use this API key to authenticate your requests.
+ Usage example:
+ <%= current_user.api_key %>
+ <%= api_v1_points_url(api_key: current_user.api_key) %>
+ <%= link_to "Generate new API key", generate_api_key_path, data: { confirm: "Are you sure?", turbo_confirm: "Are you sure?", turbo_method: :post }, class: 'btn btn-primary' %> +
+ diff --git a/app/views/devise/registrations/edit.html.erb b/app/views/devise/registrations/edit.html.erb index 7a2f8630..8e0968fb 100644 --- a/app/views/devise/registrations/edit.html.erb +++ b/app/views/devise/registrations/edit.html.erb @@ -2,17 +2,7 @@-
Use this API key to authenticate your requests.
-<%= current_user.api_key %>
- - Usage example: -
<%= api_v1_points_url(api_key: current_user.api_key) %>
- <%= link_to "Generate new API key", generate_api_key_path, data: { confirm: "Are you sure?", turbo_confirm: "Are you sure?", turbo_method: :post }, class: 'btn btn-primary' %> -
- + <%#= render 'devise/registrations/api_key' %>