1
<%= f.text_area :content, :class => "form-control", :id => "summer-body", :required => true %>

is not working when i used the

:required => true

This is the error:

An invalid form control with name='article[content]' is not focusable

But when I try to remove the class and id, it works.

Tunaki
  • 132,869
  • 46
  • 340
  • 423
Von RB
  • 11
  • 4
  • Yes. That means some css which is targeted at the id or class is the problem. See: http://stackoverflow.com/questions/22148080/an-invalid-form-control-with-name-is-not-focusable – 7stud Nov 03 '15 at 08:07
  • Try changes sequence of attribute will also help or try follow this http://stackoverflow.com/questions/22148080/an-invalid-form-control-with-name-is-not-focusable – Dipak Gupta Nov 03 '15 at 08:08

0 Answers0