ror突进-p7

去掉内文

修改app/views/topics/index.html.erb,去掉两行

<td><%= topic.description %></td>

<th>Description</th>

修改标题变成超链接

修改app/views/topics/index.html.erb

<td><%= topic.title %></td>

<td><%= link_to topic.title, topic %></td>

清理无效链接

修改app/views/topics/index.html.erb,删除两行

<td><%= link_to 'Show', topic %></td>
<td><%= link_to 'Edit', edit_topic_path(topic) %></td>

并将下面的Destroy改为delete

<td><%= link_to 'Delete', topic, method: :delete, data: { confirm: 'Are you sure?' } %></td>