diff --git a/app/helpers/topics_helper.rb b/app/helpers/topics_helper.rb new file mode 100644 index 00000000000..bd1f3d3b091 --- /dev/null +++ b/app/helpers/topics_helper.rb @@ -0,0 +1,6 @@ +module TopicsHelper + + def render_topic_title(topic) + link_to(topic.title,topic.relative_url) + end +end diff --git a/app/views/topics/show.html.erb b/app/views/topics/show.html.erb index e7e847ab054..57439cbe918 100644 --- a/app/views/topics/show.html.erb +++ b/app/views/topics/show.html.erb @@ -1,5 +1,6 @@