On 15 December 2010 19:07, Amit Ambardekar <[email protected]> wrote: > I have following code in view > > <% if @next_topic %> > Time to show next topic <%= distance_of_time_in_words(Time.now.utc, > @next_topic.time_to_show.utc) %> > <hr /> > <% end %> > > Output: > > Time to show next topic {{count}} days
Are you using internationalisation? If so then it could be an issue there. Google for time to show in words rails count produced some possibilities including http://stackoverflow.com/questions/4330403/time-ago-in-words-in-count-days Colin -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

