# Helper method

**URL:** <https://www.ruby-forum.com/t/helper-method/107317>\
**Category:** Rails\
**Created:** [June 20, 2007, 12:34pm UTC](https://www.ruby-forum.com/t/helper-method/107317 "2007-06-20T12:34:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![apsingh1981](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/8797f3/32.png) [@apsingh1981](https://www.ruby-forum.com/u/apsingh1981)\
**Post date:** [June 20, 2007, 12:34pm UTC](https://www.ruby-forum.com/t/helper-method/107317/1 "2007-06-20T12:34:33Z")

</div>

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|%\>

| ![](https://www.ruby-forum.com/files/lost/<%=%20i.photo%>)  
 | **[\<%= i.title %\>](https://www.ruby-forum.com/lost/lost_profile/<%=%0Ai.id%>)**  
From \<%= i.lost\_from %\> | Dated \<%= i.lost\_since.strftime("%b %d, %Y") %\> |

\<% end %\>

```
  How can i make a helper method out of this code ???

```

Anant
