我有一个 Rails 应用程序,我刚刚安装了 gem 'mobiscroll-rails'。我让它在我的 iMac 上进行开发。但是,当我在 Heroku 上运行它时,我得到:
ActionController::RoutingError (没有路由匹配 [GET] "/apple-touch-icon-precomposed.png"): app[web.1]: cache: [GET /apple-touch-icon-precomposed.png] 错过 heroku[路由器]:at=info method=GET path=/apple-touch-icon-precomposed.png host=www.requestsys.com fwd=70.34.1.156 dyno=web.1 queue=0 wait=0ms connect=5ms service=8ms status=404 bytes=728 heroku[nginx]: 70.34.1.156 - - [20/Jan/2013:23:58:46 +0000] "GET /apple-touch-icon-precomposed.png HTTP/1.1" 404 728 " -" "MobileSafari/8536.25 CFNetwork/609 Darwin/13.0.0" www.requestsys.com app[web.1]: 在 2013-01-20 16 开始 GET "/apple-touch-icon.png" for 70.34.1.156 :58:47 -0700 ActionController::RoutingError (没有路线匹配 [GET] "/apple-touch-icon.png"): 缓存: [GET /apple-touch-icon.png] 错过 "GET /apple-touch- icon.png HTTP/1.1"404 728 "-" "MobileSafari/8536.25 CFNetwork/609 Darwin/13.0.0" www.requestsys.com at=info method=GET path=/apple-touch-icon.png host=www.requestsys.com fwd=70.34。 1.156 dyno=web.1 队列=0 等待=0ms 连接=3ms 服务=7ms 状态=404 字节=728
我的 application.html.erb 有:
<!-- Le fav and touch icons -->
<link href="images/favicon.ico" rel="shortcut icon">
<link href="images/apple-touch-icon.png" rel="apple-touch-icon">
<link href="images/apple-touch-icon-72x72.png" rel="apple-touch-icon" sizes="72x72">
<link href="images/apple-touch-icon-114x114.png" rel="apple-touch-icon" sizes="114x114">
谢谢!
更新——现在我得到了这个:
ActionView::Template::Error(“.ios td:”之后的无效 CSS:预期的伪类或伪元素,是“first-child .d...”(在 /app/app/assets/stylesheets/application.css 中)) : 17: } 18: 19: 20: <%= stylesheet_link_tag "application", :media => "all" %> app/views/layouts/application.html.erb:20:in `_app_views_layouts_application_html_erb__4520300412125467599_68152740'