diff --git a/app/controllers/admins/forum_sections_controller.rb b/app/controllers/admins/forum_sections_controller.rb index 1ce0abb2..2531cb0d 100644 --- a/app/controllers/admins/forum_sections_controller.rb +++ b/app/controllers/admins/forum_sections_controller.rb @@ -24,6 +24,9 @@ class Admins::ForumSectionsController < Admins::BaseController def new @parent_id = params[:parent_id] @forum_section = ForumSection.new + respond_to do |format| + format.js + end end def create diff --git a/app/views/admins/forum_sections/_forums_plateSetting.html.erb b/app/views/admins/forum_sections/_forums_plateSetting.html.erb index 81f9be66..0d3e31bd 100644 --- a/app/views/admins/forum_sections/_forums_plateSetting.html.erb +++ b/app/views/admins/forum_sections/_forums_plateSetting.html.erb @@ -1,16 +1,16 @@
版块 - <%= javascript_void_link "".html_safe, class: 'btn btn-primary btn-sm', data: { toggle: 'modal', target: '.admins-add-forum-section-modal'}, parent_id: "" %> + <%= link_to "".html_safe,new_admins_forum_section_path, remote: true, class: "btn btn-primary btn-sm" %> | 主页推荐 | 一级版主任命/解除 |
---|