1

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

我确实下载了“dappled”主题,将其放在“ROOT/themes”文件夹中。然后将这一行“主题:斑纹”添加到“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”文件中

有什么帮助吗?

4

0 回答 0