<%= content_tag :header, as: 'Post.Header', id: 'PostHeader', href: admin_post_image_path(@post), method: 'post' do %> <% content_for :post_buttons do %> <%= link_to 'Administration', admin_root_path, class: %w(button) %> <%= content_tag :button do |button|%> <% button[:class] << 'button' %> <% button[:as] = 'Editor.Save' %> Save & Preview <% end %> <% end %> <%= render 'admin/posts/header/base', post: @post %> <% end %>
<%= post_tags(@post) %> <%= edit_content_tag(@post) do %> <%= h @post.content %> <% end %>