Forum: Ruby on Rails helper method

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
690d4709a310243d970970036f811f75?d=identicon&s=25 Anant Singh (apsingh1981)
on 2007-06-20 12:34
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
This topic is locked and can not be replied to.