Multiple divs in a loop


#1

I think i have a simple problem i can’t get my brain around :slight_smile:

How do i pass the arguement “story<%=story.id%>” inside the
visual_effect method?

<% for story in @stories.reverse %>

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

<% end %>

Any help would be awesome.

Thanks


#2

You probably want: ‘story’+story.id.to_s
or even: “story#{story.id}”


#3

Chris K. wrote:

You probably want: ‘story’+story.id.to_s
or even: “story#{story.id}”

Yes, Thank you :slight_smile: