    <article>
      <hgroup><h1><%= @article.metadata.title %></h1>
        <p class="meta">
          Local preview.
        </p>
      </hgroup>

      <% if !@article.html.to_s.empty? %>
        <%= @article.html %>
      <% elsif @article.error %>
      <div class="cli-preview-error">
        <h4>Parsing error:</h4>
        <p>
          <%= @article.error %>
        </p>
      </div>
      <% end %>

      <form class="cli-save" action="<%= devcenter_base_url %>/admin/articles/update/<%= @article.metadata.id %>" method="POST">
        <input name="_method" type="hidden" value="put">
        <input type="hidden" name="article[title]" value="<%= @article.metadata.title %>">
        <textarea style="display:none1" name="article[content]">
  <%= @article.content.to_s.lstrip %>
        </textarea>
        <input type="submit" value="Save in Dev Center">
      </form>

    </article>
    <article>
      <hgroup><h1><%= @article.metadata.title %></h1>
        <p class="meta">
          Local preview.
        </p>
      </hgroup>

      <% if !@article.html.to_s.empty? %>
        <%= @article.html %>
      <% elsif @article.error %>
      <div class="cli-preview-error">
        <h4>Parsing error:</h4>
        <p>
          <%= @article.error %>
        </p>
      </div>
      <% end %>

      <form class="cli-save" action="<%= devcenter_base_url %>/admin/articles/cli-edit/<%= @article.metadata.id %>" method="POST">
        <input name="_method" type="hidden" value="put">
        <input type="hidden" name="article[title]" value="<%= @article.metadata.title %>">
        <textarea style="display:none1" name="article[content]">
<%= @article.content.to_s.lstrip %>
        </textarea>
        <input type="submit" value="Save in Dev Center">
      </form>

    </article>
Update to the new Dev Center endpoint
Update to the new Dev Center endpoint
