0
인라인 유효성 검사를 위해 client_side_validations gem을 사용하고 있습니다. 여러 이미지를 추가하기 위해 nested_form gem을 설치하기 전까지는 정상적으로 작동했습니다. 이제 인라인 유효성 검사에서 오류이 표시되지 않습니다. application.js에서nested_form gem을 설치 한 후 Client_side_validation이 작동하지 않습니다.
내가 _form.html.erb에서
<%= stylesheet_link_tag "application", :media => "all" %>
<%= javascript_include_tag "application", "rails.validations" %>
<%= javascript_include_tag :defaults, "nested_form" %>
이 application.html.erb 파일에서
//= require jquery
//= require jquery_ujs
//= require twitter/bootstrap
//= require_self
//= require_tree .
//= require jquery_nested_form
이이 코드
<%= nested_form_for(@project, :html => {:multipart => true }, :validate => true) do |f| %>
에게 있습니다 나는 내가 어디로 잘못되었는지 이해할 수 없다.
감사합니다.
simple_form를 사용하려고 application.js에
를 가질 필요가 있다고 생각합니다. 너를 도울 수도있어. – Catmandu