ensl.org/app/helpers/topics_helper.rb

6 lines
140 B
Ruby
Raw Normal View History

module TopicsHelper
def lastpost topic
topic_url(topic, :page => topic.last_page, :anchor => "post_#{topic.posts.last.id}")
end
end