Rails.application.routes.draw do namespace :kindeditor do post "/upload" => "assets#create" get "/filemanager" => "assets#list" post "/uploadpic" => "assets#uploadpic" end end