Forum: Ruby on Rails multiple divs in a loop

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
jason (Guest)
on 2006-06-05 04:50
I think i have a simple problem i can't get my brain around :)

How do i pass the arguement "story<>" inside the
visual_effect method?

<% for story in @stories.reverse %>

<p><%=link_to_remote ("Show Comments", :update =>, :url =>
{:action => :show_comments, :id => story}, :complete =>
visual_effect(:grow, __________, :duration => 1.0)) %>

<div id="story<>" class="comments_class">
<div id="<>">
<% end %>

Any help would be awesome.

Chris K. (Guest)
on 2006-06-05 09:14
You probably want: 'story'
or even: "story#{}"
jason (Guest)
on 2006-06-06 07:00
Chris K. wrote:
> You probably want: 'story'
> or even: "story#{}"

Yes, Thank you :)
This topic is locked and can not be replied to.