Re: Problems with link_to_remote

user splash
2008-01-24T11:10:39Z

Frederick Cheung wrote:
> Why involve the session? If you want to do something 5 times then
it''s
> as simple as
>
> <% 5.times.do |index| %>
> ...
> <% end %>
>
> Fred

But won''t that print the stuff inside the <% 5.times do |index|
%> 5
times when the link is clicked? I only want the stuff to be printed out
once with the number incremented each time the link is clicked.

Example:
Item 0           when link is clicked,
Item 1           when link is clicked,
Item 2           and so on.