简体   繁体   English

ruby on rails教程,创建页面

[英]ruby on rails tutorial, creating pages

Folks, Trying to learn ruby on rails... following the tutorial, and after doing the foll 人们,尝试学习滑轨上的红宝石...遵循本教程,并在完成后

rails generate controller Pages home contact

Following shows up in the log/production 以下显示在日志/生产中

Started GET "/pages/home" for 24.18.129.38 at 2013-01-20 10:32:17 +0000
Processing by PagesController#home as HTML
Rendered pages/home.html.erb within layouts/application (0.0ms)
Completed 500 Internal Server Error in 2ms

ActionView::Template::Error (application.css isn't precompiled):
2: <html>
3: <head>
4:   <title>FirstApp</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___2607526346352188026_23275800'


Started GET "/pages/contact" for 24.18.129.38 at 2013-01-20 10:32:21 +0000
Processing by PagesController#contact as HTML
Rendered pages/contact.html.erb within layouts/application (0.3ms)
Completed 500 Internal Server Error in 3ms

ActionView::Template::Error (application.css isn't precompiled):
2: <html>
3: <head>
4:   <title>FirstApp</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___2607526346352188026_23275800'
# config/environments/production.rb
...
config.assets.compile = true
...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM