1

情况:

  • 环境:Windows 8、JRuby 1.7.3、Rails 3.2.13、...
  • 我正在尝试运行 JRuby on Rails 教学书中的示例程序


至今:

  1. 使用 MySQL 创建了简单的 Ruby on Rails 项目“answerme”
  2. config.assets.compile = true在 config/environments/producton.rb 中编辑
  3. 通过命令“warble war”创建“answerme.war”文件
  4. 将 .war 文件放入“Tomcat 7.0/webapps/”目录
  5. 运行 Tomcat,然后在“Tomcat 7.0/webapps/”中创建新目录“answerme”和文件
  6. 它不起作用,http://localhost:8080/answerme/feelings


  • 这行得通,http://localhost:8080
  • 这适用于rails普通服务器http://localhost:3000

'C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0\logs\localhost_access_log.2013-05-07.txt'

5 07, 2013 10:47:21 午後 org.apache.catalina.core.ApplicationContext log
情報: Started GET "/answerme/feelings" for 0:0:0:0:0:0:0:1 at 2013-05-07 22:47:21 +0900

5 07, 2013 10:47:21 午後 org.apache.catalina.core.ApplicationContext log
情報: Processing by FeelingsController#index as HTML

5 07, 2013 10:47:22 午後 org.apache.catalina.core.ApplicationContext log
情報:   Rendered feelings/index.html.erb within layouts/application (82.0ms)

5 07, 2013 10:47:22 午後 org.apache.catalina.core.ApplicationContext log
情報: Completed 500 Internal Server Error in 173ms

5 07, 2013 10:47:22 午後 org.apache.catalina.core.ApplicationContext log
情報:
ActionView::Template::Error (no such file to load -- sass
  (in C:/Program Files (x86)/Apache Software Foundation/Tomcat 7.0/webapps/answerme/WEB-INF/app/assets/stylesheets/feelings.css.scss)):
    2: <html>
    3: <head>
    4:   <title>Answerme</title>
    5:   <%= stylesheet_link_tag    "application", :media => "all" %>
    6:   <%= javascript_include_tag "application" %>
    7:   <%= csrf_meta_tags %>
    8: </head>
  app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb___1682700681_6054'
  app/controllers/feelings_controller.rb:7:in `index'
4

0 回答 0