# Link\_to\_function inside of another link\_to\_function?

**URL:** <https://www.ruby-forum.com/t/link-to-function-inside-of-another-link-to-function/191681>\
**Category:** Rails\
**Created:** [July 16, 2010, 4:40am UTC](https://www.ruby-forum.com/t/link-to-function-inside-of-another-link-to-function/191681 "2010-07-16T04:40:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bjd1121](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e9a140/32.png) [@bjd1121](https://www.ruby-forum.com/u/bjd1121)\
**Post date:** [July 16, 2010, 4:40am UTC](https://www.ruby-forum.com/t/link-to-function-inside-of-another-link-to-function/191681/1 "2010-07-16T04:40:39Z")

</div>

Hi,

Is something like this possible?

\<% link\_to\_function ‘Name’,stuff do |page|  
page.replace\_html ‘id’, :text =\> link\_to\_function  
‘Name2’,stuff2 do |page2|  
page2.replace\_html etc  
end  
end %\>

I’m using the first link\_to\_function to create a link in a div without  
reloading entire page, I want the second link\_to\_function to change the  
div back. Any help would be appreciated.
