Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <h1 id="page_title"><%= @board.title %></h1>
- <p id="notice"><%= notice %></p>
- <%= link_to 'Rails Boards', boards_path %> > <%= link_to @board.title, @board %> <br />
- <table>
- <tr>
- <th>Post / Author</th>
- <th>Last Reply</th>
- <th>Number of Replies</th>
- </tr>
- <% @board.conversations.each do |conversation| %>
- <tr>
- <td>
- <%= link_to conversation.title, board_conversation_path(:board_id => @board, :id => conversation) %><br />
- <%= conversation.user.username %>
- </td>
- <td>
- <%= conversation.comments.find(:last).created_at %><br />
- by <%= conversation.comments.find(:last).user.username %>
- </td>
- <td>
- <%= conversation.comments.count - 1%>
- </td>
- </tr>
- <% end %>
- </table>
- <%= link_to 'Post New Message', new_board_conversation_url(@board) %>
Add Comment
Please, Sign In to add comment