<%= form_for(resource, as: resource_name,
url: user_registration_path(resource),
html: { method: :put, role: "form" }) do |f| %>
<%= f.submit t('links.update'), class: "btn btn-primary" %> - <%= link_to t('links.cancel'), root_path, class: "btn btn-default" %>
<% end %>