Rails3 上的 CommunityEngine 未加载主题
我从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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论