<script type="text/javascript">

localDomains = ""

$(document).ready(function() {
  $.validationEngineLanguage.newLang(localDomains);
  $("#app_env").validationEngine({
    success : function() { document.app_env.submit(); },
    failure : function() {}
  })
});
</script>

システム管理画面アクセス許可ＩＰアドレスの設定変更
<fieldset>
  <div class="table-sys-a1">
    <div class="item-body">
      <%= form_with(model: @app_env, url: {action: :param_update, id: @app_env.id},
                    id: 'app_env', html: {name: "app_env"}) do |f| -%>
        <div class="item-tr">
          <div class="item-mid"></div>
          <div class="input-mid"><%= f.text_field :value, :class => 'validate[required, custom[IPAddress]]' %></div>
        </div>
        <div class="item-tr">
          <div class="item-mid"></div>
          <div class="input-mid"><%= f.submit "　更新　" %></div>
        </div>
      <% end %>
    </div>
  </div>
</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 -%>

