diff --git a/app/helpers/topics_helper.rb b/app/helpers/topics_helper.rb new file mode 100644 index 000000000..bd1f3d3b0 --- /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 e7e847ab0..57439cbe9 100644 --- a/app/views/topics/show.html.erb +++ b/app/views/topics/show.html.erb @@ -1,5 +1,6 @@