Hi .. Can anyone please let me know what will be the helper method for this loop ... My code is like this , which i have placed in view ... <% @lost_ftl.each do |i|%> <table width="100%" border="0" cellspacing="0" cellpadding="0" style="padding-top:5px;"> <tr> <td width="17%" valign="top"> <img src="/files/lost/<%= i.photo%>" width="30" height="30" vspace="3" hspace="3" class="cssImgBorder" /><br /> </td> <td width="83%" valign="top"><b><a href="/lost/lost_profile/<%i.id%>"><%= i.title %></a></b><br /> <span class="cssSmall">From <%= i.lost_from %> | Dated <%i.lost_since.strftime("%b %d, %Y") %></span> </td> </tr> </table> <% end %> How can i make a helper method out of this code ??? Anant -- Posted via ruby-forum.com. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---