2
Rails는 편집 할 수없는 텍스트 필드입니다.
다음과 같은 방식으로 작성된 form_for가 있습니다. <div class="field"> <%= location.label :city %> <%= location.text_field :city, :disabled=>true%> </div> <div class="field"> <%= location.label :country %> <%= location.text_field :country, :disabled=>true%> </div> 보시다시피 두 텍스트 필드는 jquery 함수에 의해 자동으로 채워지고 사용자가 처리하도록 허용하지 않기 때문에 비활성화됩니다. 문제는 이런 식으로 뷰가 비활성화되어 있기 때문에 …