sencha touch 2 RoutingError(没有路由匹配“/ docs”)

时间:2011-11-30 10:58:53

标签: ruby-on-rails sencha-touch sencha-touch-2

我是开发人员。

根据http://docs.sencha.com/touch/2-0/#!/guide/getting_started

我已经下载了sencha touch库并将解压缩的目录放入 公共目录,并将其重命名为touch。

我的应用程序在http://localhost:3000/

运行

当我尝试访问http://localhost:3000/touch

它给出了错误,因为RoutingError(没有路由匹配“/ docs”)和

浏览器中的

网址更改为http://localhost:3000/docs

Plz帮助。

1 个答案:

答案 0 :(得分:0)

index.html文件中有一个转发代码Redirect non-mobile devices to docs/

从index.html删除此脚本(第13-16行)可修复重定向问题,并且当您看到重定向的路由不在 http:// localhost:3000 / docs 上时。它位于 http:// localhost:3000 / touch / docs

我希望它有所帮助