use link_to to replace a href

This commit is contained in:
xdite 2013-02-11 19:13:04 +08:00
parent 3047d8afa3
commit b609060455
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<h2>
<a href="<%= @topic_view.topic.relative_url %>"><%= @topic_view.topic.title %></a>
<%= link_to(@topic_view.topic.title, @topic_view.topic.relative_url) %>
</h2>
<% (@post ? [@post] : @topic_view.posts).each do |post| %>
<div class='creator'>
@ -12,7 +12,7 @@
<% if @next_page%>
<p>
<b><a href="<%= @topic_view.topic.relative_url %>?page=<%= @next_page%>">next page</a></b>
<b><%= link_to("next page", @topic_view.topic.relative_url + "?page=" + @next_page ) %></b>
</p>
<% end %>