On Sep 7, 2006, at 12:33 AM, Sean Cribbs wrote: > Sean, try this. > > class Behavior::Base > define_tags do > tag "time_ago_in_words" do |tag| > ActionView::Base.new.time_ago_in_words > (tags.locals.page.created_at) > end > end > end >
Remember that Radiant caching will give you some problems with this... but seeing as the cache expires after 5 minutes, i don't think it will be much of an issue. Bodhi _______________________________________________ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
