# Update a div element without having a corresponding action

**URL:** <https://www.ruby-forum.com/t/update-a-div-element-without-having-a-corresponding-action/56507>\
**Category:** Rails\
**Created:** [March 31, 2006, 7:23pm UTC](https://www.ruby-forum.com/t/update-a-div-element-without-having-a-corresponding-action/56507 "2006-03-31T19:23:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Larson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f6c823/32.png) [@Chris\_Larson](https://www.ruby-forum.com/u/Chris_Larson)\
**Post date:** [March 31, 2006, 7:23pm UTC](https://www.ruby-forum.com/t/update-a-div-element-without-having-a-corresponding-action/56507/1 "2006-03-31T19:23:50Z")

</div>

Rails group,

I’m looking to update a div element with a page link without having  
to write a corresponding action to populate that element.

I’ve tried:  
\<%= link\_to\_function “cancel”, page.replace\_html(“control”, :partial  
=\> “controls”) %\>

Basically I’m trying to limit the amount of methods that serve my  
Ajax calls that only render a partial.

Thanks,  
Chris
