15 lines
278 B
Plaintext
15 lines
278 B
Plaintext
|
<%=stylesheet_link_tag "NewBlog/application"%>
|
||
|
<table>
|
||
|
<tr>
|
||
|
<th><%= t('blog.title') %></th>
|
||
|
<th><%= t('blog.body') %></th>
|
||
|
</tr>
|
||
|
|
||
|
<% @posts.each do |post| %>
|
||
|
<tr>
|
||
|
<td><%= post.title %></td>
|
||
|
<td><%= post.body.truncate(14) %></td>
|
||
|
</tr>
|
||
|
<% end %>
|
||
|
</table>
|