내 컨트롤러에서 함수를 호출하는 Ruby on Rails 앱에 버튼이 있습니다.버튼을 클릭 할 때 rail on button_to를 비활성화하는 방법은 무엇입니까?
버튼을 클릭하면 함수가 호출됩니다.
그래서이 버튼을 클릭 한 후 비활성화하고 기능이 완료된 후에 다시 사용 가능하게하고 싶습니다.
어떻게하면됩니까? 내보기 코드 아래
는
<div style="float: left; width: auto; padding-right: 1%">
<%= button_to_function l(:gerar_build_project), remote_function(:action => 'exec_client', :controller => 'repositories') %>
</div>
사용합니다. 무엇 : disable_with해야했는데? – kamusett