spec/dummy/app/views/posts/show.html.erb in controller_resources-0.0.6 vs spec/dummy/app/views/posts/show.html.erb in controller_resources-0.1.0
- old
+ new
@@ -1,19 +1,14 @@
<p id="notice"><%= notice %></p>
<p>
<strong>Title:</strong>
- <%= @post.title %>
+ <%= post.title %>
</p>
<p>
<strong>Body:</strong>
- <%= @post.body %>
+ <%= post.body %>
</p>
-<p>
- <strong>Is published:</strong>
- <%= @post.is_published %>
-</p>
-
-<%= link_to 'Edit', edit_post_path(@post) %> |
+<%= link_to 'Edit', edit_post_path(post) %> |
<%= link_to 'Back', posts_path %>