I have a button on my Ruby on Rails app which calls a function on my controller.
When I click on the button I call a function.
So I want do disable this button after clicking on it, then able it again after my function was done.
How can I do it?
below my view code
<div style="float: left; width: auto; padding-right: 1%">
<%= button_to_function l(:gerar_build_project), remote_function(:action => 'exec_client', :controller => 'repositories') %>
</div>