changing the button

how to change the button once the button is clicked? and the next time
no action is performed when the button is changed? is it possible? Give
me the solution with suitable code?


A google search for
rails disable button after click
will yield several possible solutions.