<script type="text/javascript">
var localDomains = "";
$(document).ready(function() {
  $.validationEngineLanguage.newLang(localDomains);
  $("#content_frame").validationEngine({
    success : function() { document.content_frame.submit(); },
    failure : function() {}
  });
});
</script>

タイトルの設定変更
<fieldset>
  <%= form_with(model: @content_frame, url: {action: 'update_content_frame', id: @content_frame.id},
                        id: 'content_frame', html: {name: "content_frame" }) do |f| %>
    <div class="table-sys-a1">
      <div class="item-body">
        <div class="item-tr">
          <div class="item-mid"></div>
          <div class="input-mid">
            <%= f.text_field :title, class: 'validate[required,maxSize[18]]' %>
          </div>
        </div>
        <div class="item-tr">
          <div class="item-mid"></div>
          <div class="input-mid"><%= f.submit "　更新　" %></div>
        </div>
      </div>
    </div>
  <% end %>
</fieldset>

<br>

<% if session[:target_for_back_id] -%>
  <%= link_to "戻る", {action: session[:target_for_back], id: session[:target_for_back_id]} %><br />
<% else -%>
  <%= link_to "戻る", {action: session[:target_for_back]} %><br />
<% end -%>
