# Page.assign display assigned value

**URL:** <https://www.ruby-forum.com/t/page-assign-display-assigned-value/175190>\
**Category:** Rails\
**Created:** [September 9, 2009, 1:52pm UTC](https://www.ruby-forum.com/t/page-assign-display-assigned-value/175190 "2009-09-09T13:52:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![prabesh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f05b48/32.png) [@prabesh](https://www.ruby-forum.com/u/prabesh)\
**Post date:** [September 9, 2009, 1:52pm UTC](https://www.ruby-forum.com/t/page-assign-display-assigned-value/175190/1 "2009-09-09T13:52:26Z")

</div>

I can assign the value with  
\<%=link\_to\_function(“alert”, nil, :id =\> “alert”) do |page|  
page.assign ‘count’, 1  
page.alert(count)  
end  
%\>

How can I use the value of count once I assign it some value?

Thanks.
