나는 장치를 사용합니다. /devise/registrations/edit.html.erb
파일에서 몇 가지 변경을했습니다. 다른 두 가지 형식을 추가했습니다. 모든 형태는 .error_notification
에 다음과 같은 오류를 보여한 페이지에 세 개의 양식이 하나만 제출되면 오류 경고가 표시됩니다.
<%= simple_form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put, class: 'form-horizontal' }) do |f| %>
<%= f.error_notification %>
...
<% end %>
<%= simple_form_for(@user, :url => emailnotifs_path, html: {class: 'form-horizontal' }) do |f1| %>
<%= f1.error_notification %>
...
<% end %>
<%= simple_form_for(@user, :url => updatebilling_path, html: {class: 'form-horizontal' }) do |f2| %>
<%= f2.error_notification %>
...
<% end %>
내가 세 가지 형태 중 하나를 제출하면 에러가 발생합니다 : 요약 양식 (전체 파일)이 같다 Please review the problems below:
왜 이런 일이 일어나고 논리적인지 궁금합니다. 물론 나는 이것이 일어나기를 원하지 않는다. 각 양식은 독립적이어야합니다. 다른 정보가 필요하면 알려주십시오.