<% content_for :page_heading do %>
  <h2>
    <i class="glyphicon glyphicon-large glyphicon-cog"></i>
    <%=
      case @section
      when 'general' then t(".global_settings")
      when 'titles' then t(".title_settings")
      when 'permalinks' then t(".permalinks")
      end
    %>
  </h2>
<% end %>

<%= error_messages_for 'blog' %>

<%= form_tag admin_seo_path, method: :put do %>
  <%= render partial: @section %>

  <%= hidden_field_tag 'section', @section %>
  <div class='form-group'>
    <hr>
    <%= link_to(t(".cancel"), admin_seo_path(section: @section)) %>
    <%= t(".or") %>
    <%= submit_tag(t(".update_settings"), class: 'btn btn-success') %>
  </div>
<% end %>

<% content_for :page_heading do %>
  <h2>
    <i class="glyphicon glyphicon-large glyphicon-cog"></i>
    <%=
      case @section
      when 'titles' then t(".title_settings")
      when 'permalinks' then t(".permalinks")
      else t(".global_settings")
      end
    %>
  </h2>
<% end %>

<%= error_messages_for 'blog' %>

<%= form_tag admin_seo_path, method: :put do %>
  <%=
    case @section
    when 'titles' then render 'titles'
    when 'permalinks' then render 'permalinks'
    else render 'general'
    end
  %>

  <%= hidden_field_tag 'section', @section %>
  <div class='form-group'>
    <hr>
    <%= link_to(t(".cancel"), admin_seo_path(section: @section)) %>
    <%= t(".or") %>
    <%= submit_tag(t(".update_settings"), class: 'btn btn-success') %>
  </div>
<% end %>

Make admin/seo/show view even more robust
Make admin/seo/show view even more robust
