Permalink
Browse files

modify view link

  • Loading branch information...
1 parent 83636ad commit 64b58ad308b3b469e618853d7f3846c733f7072c @ruseel committed Nov 22, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 app/views/topics/index.html.erb
@@ -10,12 +10,12 @@
<% @topics.each do |topic| %>
<tr>
<td>
- <%= link_to (depth_mark(topic.depth) + topic.subject), [topic.board,topic] %>
+ <%= link_to (depth_mark(topic.depth) + topic.subject), [topic.board, topic] %>
</td>
<td><%= topic.created_at %></td>
<td>
- <%= link_to "보기", topic %>
- <%= link_to "수정", edit_topic_path(topic) %>
+ <%= link_to "보기", [topic.board,topic] %>
+ <%= link_to "수정", edit_board_topic_path(topic.board, topic) %>
</td>
</tr>
<% end %>
@@ -24,6 +24,6 @@
<%= paginate @topics %>
<div class="footer">
- <%= link_to "새글 작성", new_topic_path %>
+ <%= link_to "새글 작성", new_board_topic_path(@board) %>
</div>
</div>

0 comments on commit 64b58ad

Please sign in to comment.