<%= form_tag(validate_user_path, method: "post") do %> <%= hidden_field_tag(:id, @user.id) %> <%= t('user.key_message') %> <%= text_field_tag(:key, nil, class: flash[:error] ? "input is-danger" : "input", placeholder: "XXXXXXXXXXXXXXXXXXXXXXXXX", maxlength: "25", autofocus: true) %> <% if flash[:error] %> <%= t('user.key_error') %> <% end %> <% end %>