Page.assign display assigned value

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs