Rails3 上的 CommunityEngine 未加载主题

发布于 2024-11-26 17:53:02 字数 1441 浏览 1 评论 0原文

我从rails3分支安装了新版本的CE。 除了主题之外,一切都很好。

我确实下载了“dappled”主题并将其放在“ROOT/themes”文件夹中。 然后将这一行“theme:dappled”添加到“application.yml”文件中。

从“views/layouts”文件夹中删除了默认的“application.html.rb”文件,从“public”文件夹中删除了“index.html”文件。

但仍然没有加载任何主题!

顺便说一句,我在终端日志中收到此错误:

Started GET "/javascripts/community_engine.js" for 127.0.0.1 at 2011-07-25 17:46:37 +0300

ActionController::RoutingError (No route matches [GET] "/javascripts/community_engine.js"):

Rendered /Users/walidov/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.0.beta1/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.9ms)

Started GET "/stylesheets/community_engine.css" for 127.0.0.1 at 2011-07-25 17:46:37 +0300

ActionController::RoutingError (No route matches [GET] "/stylesheets/community_engine.css"):

Rendered /Users/walidov/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.0.beta1/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.9ms)

Started GET "/images/spinner.gif" for 127.0.0.1 at 2011-07-25 17:46:37 +0300

ActionController::RoutingError (No route matches [GET] "/images/spinner.gif"):

Rendered /Users/walidov/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.0.beta1/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.8ms)

我将这一行“mount CommunityEngine::Engine =>“/””添加到“routes.rb”文件中

有帮助吗?

I installed a fresh version of CE from rails3 branch.
Every thing worked fine but the Theme.

I did downloaded the "dappled" theme put it in "ROOT/themes" folder.
Then added this line "theme: dappled" to the "application.yml" file.

Deleted the default "application.html.rb" file from "views/layouts" folder and "index.html" file from the "public" folder.

But still no theme at all loading !!

By the way i get this error in terminal log:

Started GET "/javascripts/community_engine.js" for 127.0.0.1 at 2011-07-25 17:46:37 +0300

ActionController::RoutingError (No route matches [GET] "/javascripts/community_engine.js"):

Rendered /Users/walidov/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.0.beta1/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.9ms)

Started GET "/stylesheets/community_engine.css" for 127.0.0.1 at 2011-07-25 17:46:37 +0300

ActionController::RoutingError (No route matches [GET] "/stylesheets/community_engine.css"):

Rendered /Users/walidov/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.0.beta1/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.9ms)

Started GET "/images/spinner.gif" for 127.0.0.1 at 2011-07-25 17:46:37 +0300

ActionController::RoutingError (No route matches [GET] "/images/spinner.gif"):

Rendered /Users/walidov/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.0.beta1/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.8ms)

I added this line "mount CommunityEngine::Engine => "/"" to the "routes.rb" file

Any help?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文