Link_to

Any guy out there help me to
when i have
<%= link_to “Lock”,… action:‘lock’
<%= link_to “Lock”,… action: ‘unlock’
I do want to disable the link lock when i click the unlock link
and vice versa