Rails kindeditor 上传路径的问题。

blackangel_can · April 01, 2014 · 2281 hits

有一个文章模块,使用 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"

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

No Reply at the moment.
You need to Sign in before reply, if you don't have an account, please Sign up first.