app/views/manifest/pages/show.html.erb in manifest-rails-0.1.3 vs app/views/manifest/pages/show.html.erb in manifest-rails-0.2.0

- old
+ new

@@ -10,14 +10,14 @@ <th>Updated</th> </thead> <tbody> <% @page.content_blocks.each do |c| %> - <tr> + <%= content_tag_for(:tr, c) do %> <td><%= link_to c.title, edit_manifest_content_block_path(c) %></td> <td><%= c.created_at.to_s(:short) %></td> <td><%= c.updated_at.to_s(:short) %></td> - </tr> + <% end %> <% end %> </tbody> </table> <% else %> <p>This page has no content blocks of its own. <%= link_to('Add one!', new_manifest_content_block_path(content_block: { page_id: @page.id })) if current_editor.admin? %></p>