Rails.application.routes.draw do #Admin Panel scope 'admin', as: 'admin' do namespace "plugins" do namespace "post_reorder" do post 'reorder_posts' => "admin#reorder_posts" get 'settings' => "admin#settings" post 'settings' => "admin#save_settings" end end end end