Re: Problems with link_to_remote

Frederick Cheung
2008-01-24T11:03:16Z

On 24 Jan 2008, at 10:52, user splash wrote:

>
> Keynan Pratt wrote:
>> I believe what Fred is asking is "WTF?"
>>
>> Why do you need to loop at all?
>
> Hi,
>
> I loop to get the incementing number for Item some_number. I tried
> many
> way to get this counter thing right. Please direct me to the right
> path
> if I am wrong.
> How do I or should I do this counter?

Why involve the session? If you want to do something 5 times then it''s
as simple as

<% 5.times.do |index| %>
...
<% end %>

Fred
>
>
> Thanks
> --
> Posted via http://www.ruby-forum.com/.
>
> >