Merge with new_blog
This commit is contained in:
1 parent
2e86d8081f
commit
64c68fcdeb
80 files changed
+906
-79
No files matched your search
@@ -0,0 +1,5 @@
|
||||
<%=stylesheet_link_tag "NewBlog/application"%>
|
||||
<h2><%=@post.title%></h2>
|
||||
<p>
|
||||
<%= @post.body%>
|
||||
</p>
|
||||
@@ -0,0 +1,14 @@
|
||||
<%=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>
|
||||
@@ -0,0 +1,5 @@
|
||||
<%=stylesheet_link_tag "NewBlog/application"%>
|
||||
<h1><%= @post.title %> </h1>
|
||||
<p>
|
||||
<%= @post.body %>
|
||||
</p>
|
||||
Reference in new issue
Block a user