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