设置路由 设置路由 manager

功能管理

<%= form_tag setting_handle_function_path(@function), method: :patch, class: "sidebar-search" do %> <% @routes.each do |route| %> <% end %>
ID 方法 路由
<% if @funcRoutes.where(id: route.id).any? %> <%= check_box_tag 'routepath_id[]', route.id, :checked => "checked" %> <% else %> <%= check_box_tag 'routepath_id[]', route.id %> <% end %> <%= route.id %> <%= route.method %> <%= "#{route.controller}/#{route.action}" %>
<% end %>
<% content_for :js_bottom do %> <% end %>