# Link\_to

**URL:** <https://www.ruby-forum.com/t/link-to/144141>\
**Category:** Ruby-Forum\
**Created:** [July 25, 2008, 8:30pm UTC](https://www.ruby-forum.com/t/link-to/144141 "2008-07-25T20:30:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dienmai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/7ab992/32.png) [@dienmai](https://www.ruby-forum.com/u/dienmai)\
**Post date:** [July 25, 2008, 8:30pm UTC](https://www.ruby-forum.com/t/link-to/144141/1 "2008-07-25T20:30:49Z")

</div>

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
