Rails kindeditor 上传路径的问题。

blackangel_can · 2014年04月01日 · 2281 次阅读

有一个文章模块,使用 scffold 脚手架构建,放在一个特定目录中。路由如下 scope "manager" do resources :articles end 生成的 rake routes /kindeditor/upload 问题来了,通过使用 form 构建的表单字段 <%= f.kindeditor :content, :width => 680, :height => 450 %> 生成的 upload 上传路径居然是 http://localhost:3001/managerkindeditor/upload 通过指定参数。

<%= f.kindeditor :content, :width => 680, :height => 450, :uploadJson => "/kindeditor/upload", :fileManagerJson => "/kindeditor/filemanager"

%> 也无法修改成为正确的地址,请问各位有遇见过这个情况么?解决方案是?

暂无回复。
需要 登录 后方可回复, 如果你还没有账号请 注册新账号