<%= distance_of_time_in_words(post.created_at, Time.now) %>
gives {{count}}
<%= distance_of_time_in_words(post.created_at, Time.now) %>
gives {{count}}
On 5 January 2011 07:31, bunty [email protected] wrote:
<%= distance_of_time_in_words(post.created_at, Time.now) %>
gives {{count}}
Are you using internationalisation? If so then I would look in that
direction.
Colin
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs