Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/53.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 赫罗库错误?我们';I’很抱歉,出了点问题。我们';我们已收到有关此问题的通知,我们';我很快就会看的_Ruby On Rails_Ruby_Heroku - Fatal编程技术网

Ruby on rails 赫罗库错误?我们';I’很抱歉,出了点问题。我们';我们已收到有关此问题的通知,我们';我很快就会看的

Ruby on rails 赫罗库错误?我们';I’很抱歉,出了点问题。我们';我们已收到有关此问题的通知,我们';我很快就会看的,ruby-on-rails,ruby,heroku,Ruby On Rails,Ruby,Heroku,嗨,我想知道为什么我们的一个页面有问题 我在cli中运行heroku日志 这是输出: C:\Users\Rowell\peekboxbeta>heroku logs --app gentle-beach-4013 2012-07-13T03:41:40+00:00 app[web.12]: 2012-07-13T03:41:40+00:00 app[web.12]: ActionController::RoutingError (No route matches [GET] "/use

嗨,我想知道为什么我们的一个页面有问题

我在cli中运行heroku日志

这是输出:

  C:\Users\Rowell\peekboxbeta>heroku logs --app gentle-beach-4013
2012-07-13T03:41:40+00:00 app[web.12]:
2012-07-13T03:41:40+00:00 app[web.12]: ActionController::RoutingError (No route matches [GET] "/users/assets/pb/f
avicon.jpg"):
2012-07-13T03:41:40+00:00 app[web.12]:
2012-07-13T03:41:40+00:00 app[web.12]:
2012-07-13T03:41:40+00:00 app[web.12]:
2012-07-13T03:41:40+00:00 app[web.12]: cache: [GET /users/assets/pb/favicon.jpg] miss
2012-07-13T03:41:40+00:00 heroku[router]: GET www.peekbox.tv/users/assets/pb/favicon.jpg dyno=web.12 queue=0 wait
=0ms service=6ms status=404 bytes=728
2012-07-13T03:41:40+00:00 app[web.5]:
2012-07-13T03:41:40+00:00 app[web.5]:
2012-07-13T03:41:40+00:00 app[web.5]: Started GET "/assets/pb/prev-arrow.png" for 203.177.42.214 at 2012-07-13 11
:41:40 +0800
2012-07-13T03:41:40+00:00 app[web.5]: cache: [GET /assets/pb/prev-arrow.png] stale, valid, store
2012-07-13T03:41:40+00:00 heroku[router]: GET www.peekbox.tv/assets/pb/menu-bg.png dyno=web.6 queue=0 wait=0ms se
rvice=3ms status=200 bytes=2835
2012-07-13T03:41:40+00:00 heroku[router]: GET www.peekbox.tv/assets/pb/bird.png dyno=web.2 queue=0 wait=0ms servi
ce=4ms status=200 bytes=1833
2012-07-13T03:41:40+00:00 app[web.2]: Started GET "/assets/pb/bird.png" for 203.177.42.214 at 2012-07-13 11:41:40
 +0800
2012-07-13T03:41:40+00:00 app[web.2]:
2012-07-13T03:41:40+00:00 app[web.2]:
2012-07-13T03:41:40+00:00 app[web.2]: cache: [GET /assets/pb/bird.png] stale, valid, store
2012-07-13T03:41:40+00:00 app[web.4]:
2012-07-13T03:41:40+00:00 app[web.4]:
2012-07-13T03:41:40+00:00 app[web.4]: Started GET "/assets/pb/twitter_32.png" for 203.177.42.214 at 2012-07-13 11
:41:40 +0800
2012-07-13T03:41:40+00:00 app[web.4]: cache: [GET /assets/pb/twitter_32.png] stale, valid, store
2012-07-13T03:41:40+00:00 app[web.11]:
2012-07-13T03:41:40+00:00 app[web.11]:
2012-07-13T03:41:40+00:00 app[web.11]: Started GET "/assets/pb/bottom-shadow.png" for 203.177.42.214 at 2012-07-1
3 11:41:40 +0800
2012-07-13T03:41:40+00:00 heroku[router]: GET www.peekbox.tv/assets/pb/twitter_32.png dyno=web.4 queue=0 wait=0ms
 service=4ms status=200 bytes=2313
2012-07-13T03:41:40+00:00 app[web.11]: cache: [GET /assets/pb/bottom-shadow.png] stale, valid, store
2012-07-13T03:41:40+00:00 heroku[router]: GET www.peekbox.tv/assets/pb/bottom-shadow.png dyno=web.11 queue=0 wait
=0ms service=6ms status=200 bytes=145
2012-07-13T03:41:40+00:00 heroku[router]: GET www.peekbox.tv/assets/pb/prev-arrow.png dyno=web.5 queue=0 wait=0ms
 service=5ms status=200 bytes=1043
2012-07-13T03:41:40+00:00 app[web.9]:
2012-07-13T03:41:40+00:00 app[web.9]:
2012-07-13T03:41:40+00:00 app[web.9]: Started GET "/assets/pb/facebook_32.png" for 203.177.42.214 at 2012-07-13 1
1:41:40 +0800
2012-07-13T03:41:40+00:00 app[web.9]: cache: [GET /assets/pb/facebook_32.png] stale, valid, store
2012-07-13T03:41:40+00:00 app[web.3]:
2012-07-13T03:41:40+00:00 app[web.3]:
2012-07-13T03:41:40+00:00 app[web.3]: Started GET "/assets/pb/footer-bullet.png" for 203.177.42.214 at 2012-07-13
 11:41:40 +0800
2012-07-13T03:41:40+00:00 heroku[router]: GET www.peekbox.tv/assets/pb/facebook_32.png dyno=web.9 queue=0 wait=0m
s service=18ms status=200 bytes=2094
2012-07-13T03:41:40+00:00 app[web.3]: cache: [GET /assets/pb/footer-bullet.png] stale, valid, store
2012-07-13T03:41:40+00:00 heroku[router]: GET www.peekbox.tv/assets/pb/footer-bullet.png dyno=web.3 queue=0 wait=
0ms service=21ms status=200 bytes=391
2012-07-13T03:41:40+00:00 app[web.6]:
2012-07-13T03:41:40+00:00 app[web.6]:
2012-07-13T03:41:40+00:00 app[web.6]: Started GET "/assets/pb/menu-bg.png" for 203.177.42.214 at 2012-07-13 11:41
:40 +0800
2012-07-13T03:41:40+00:00 app[web.6]: Started GET "/assets/pb/header-glow.png" for 203.177.42.214 at 2012-07-13 1
1:41:40 +0800
2012-07-13T03:41:40+00:00 app[web.6]: cache: [GET /assets/pb/menu-bg.png] stale, valid, store
2012-07-13T03:41:40+00:00 app[web.6]:
2012-07-13T03:41:40+00:00 app[web.6]:
2012-07-13T03:41:40+00:00 app[web.6]: cache: [GET /assets/pb/header-glow.png] stale, valid, store
2012-07-13T03:41:40+00:00 app[web.6]:
2012-07-13T03:41:40+00:00 app[web.6]:
2012-07-13T03:41:40+00:00 app[web.6]: Started GET "/assets/pb/twitter-border.png" for 203.177.42.214 at 2012-07-1
3 11:41:40 +0800
2012-07-13T03:41:40+00:00 app[web.6]: cache: [GET /assets/pb/twitter-border.png] stale, valid, store
2012-07-13T03:41:40+00:00 heroku[router]: GET www.peekbox.tv/assets/pb/header-glow.png dyno=web.6 queue=0 wait=0m
s service=36ms status=200 bytes=36446
2012-07-13T03:41:40+00:00 heroku[router]: GET www.peekbox.tv/assets/pb/twitter-border.png dyno=web.6 queue=0 wait
=0ms service=37ms status=200 bytes=117
2012-07-13T03:41:41+00:00 app[web.10]:
2012-07-13T03:41:41+00:00 app[web.10]: Started GET "/assets/pb/noise.png" for 203.177.42.214 at 2012-07-13 11:41:
40 +0800
2012-07-13T03:41:41+00:00 app[web.10]:
2012-07-13T03:41:41+00:00 app[web.10]: cache: [GET /assets/pb/noise.png] stale, valid, store
2012-07-13T03:41:41+00:00 heroku[router]: GET www.peekbox.tv/assets/pb/noise.png dyno=web.10 queue=0 wait=0ms ser
vice=957ms status=304 bytes=0
2012-07-13T03:41:41+00:00 app[web.10]:
2012-07-13T03:41:41+00:00 app[web.10]: Started GET "/assets/pb/next-arrow.png" for 203.177.42.214 at 2012-07-13 1
1:41:41 +0800
2012-07-13T03:41:41+00:00 app[web.10]:
2012-07-13T03:41:41+00:00 app[web.10]: cache: [GET /assets/pb/next-arrow.png] stale, valid, store
2012-07-13T03:41:41+00:00 heroku[router]: GET www.peekbox.tv/assets/pb/next-arrow.png dyno=web.10 queue=0 wait=0m
s service=858ms status=304 bytes=0
2012-07-13T03:41:42+00:00 app[web.8]: Started GET "/bo" for 180.194.245.32 at 2012-07-13 11:41:42 +0800
2012-07-13T03:41:42+00:00 app[web.8]:
2012-07-13T03:41:42+00:00 app[web.8]:   Processing by InformationController#show as HTML
2012-07-13T03:41:42+00:00 app[web.8]:   Parameters: {"username"=>"bo"}
2012-07-13T03:41:42+00:00 app[web.8]:
2012-07-13T03:41:42+00:00 app[web.8]: Rendered information/_pic.html.haml (0.9ms)
2012-07-13T03:41:42+00:00 app[web.8]: Rendered information/_d
ata.html.haml (0.5ms)
2012-07-13T03:41:42+00:00 app[web.8]: Rendered information/_controls.html.haml (6.3ms)
2012-07-13T03:41:43+00:00 app[web.8]: Rendered information/_wall_post.html.haml (1227.0ms)
2012-07-13T03:41:43+00:00 app[web.8]: Rendered information/show.html.haml within layouts/application (1236.4ms)
2012-07-13T03:41:43+00:00 app[web.8]: Completed 500 Internal Server Error in 1242ms
2012-07-13T03:41:43+00:00 app[web.8]:
2012-07-13T03:41:43+00:00 app[web.8]: ActionView::Template::Error (undefined method `profilepic' for nil:NilClass
):
2012-07-13T03:41:43+00:00 app[web.8]:     5:    %div.post
2012-07-13T03:41:43+00:00 app[web.8]:     6:            -@wall_posts.each do |post|
2012-07-13T03:41:43+00:00 app[web.8]:     8:                            -unless post.poster.profilepic == nil
2012-07-13T03:41:43+00:00 app[web.8]:     9:                                    %div#wall-post
2012-07-13T03:41:43+00:00 app[web.8]:     7:                    %div
2012-07-13T03:41:43+00:00 app[web.8]:     10:                                           %div#wall-poster-pic
2012-07-13T03:41:43+00:00 app[web.8]:     11:                                                   =link_to (image_t
ag post.poster.profilepic_url(:profile_pic) ,:style => "width:50px;height:76px"), other_user_path(post.poster.use
rname)
2012-07-13T03:41:43+00:00 app[web.8]:   app/views/information/_wall_post.html.haml:8:in `block in _app_views_info
rmation__wall_post_html_haml___575386532158736245_58517160'
2012-07-13T03:41:43+00:00 app[web.8]:   app/views/information/_wall_post.html.haml:6:in `_app_views_information__
wall_post_html_haml___575386532158736245_58517160'
2012-07-13T03:41:43+00:00 app[web.8]:   app/views/information/show.html.haml:20:in `_app_views_information_show_h
tml_haml__598682898842295215_31999300'
2012-07-13T03:41:43+00:00 app[web.8]:
2012-07-13T03:41:43+00:00 app[web.8]:
2012-07-13T03:41:43+00:00 app[web.8]: cache: [GET /bo] miss
2012-07-13T03:41:43+00:00 heroku[router]: GET www.peekbox.tv/bo dyno=web.8 queue=0 wait=0ms service=1252ms status
=500 bytes=728
2012-07-13T03:41:43+00:00 heroku[nginx]: 180.194.245.32 - - [13/Jul/2012:03:41:43 +0000] "GET /bo HTTP/1.0" 500 7
28 "http://www.peekbox.tv/profile" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20
.0.1132.57 Safari/536.11" www.peekbox.tv
2012-07-13T03:41:44+00:00 heroku[nginx]: 180.194.245.32 - - [13/Jul/2012:03:41:44 +0000] "GET /favicon.ico HTTP/1
.0" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536
.11" www.peekbox.tv
2012-07-13T03:42:27+00:00 heroku[worker.2]: State changed from crashed to starting
2012-07-13T03:42:31+00:00 heroku[worker.2]: Starting process with command `bundle exec rake jobs:work`
2012-07-13T03:42:32+00:00 heroku[worker.2]: State changed from starting to up
2012-07-13T03:42:37+00:00 app[worker.2]: rake aborted!
2012-07-13T03:42:37+00:00 app[worker.2]: Don't know how to build task 'jobs:work'
2012-07-13T03:42:37+00:00 app[worker.2]:
2012-07-13T03:42:37+00:00 app[worker.2]: (See full trace by running task with --trace)
2012-07-13T03:42:38+00:00 heroku[worker.2]: Process exited with status 1
2012-07-13T03:42:38+00:00 heroku[worker.2]: State changed from up to crashed

C:\Users\Rowell\peekboxbeta>heroku rake db:version
WARNING: `heroku rake` has been deprecated. Please use `heroku run rake` instead.
Running `rake db:version` attached to terminal... failed
 !    No app specified.
 !    Run this command from an app folder or specify which app to use with --app <app name>

C:\Users\Rowell\peekboxbeta>heroku rake db:version --app gentle-beach-4013
WARNING: `heroku rake` has been deprecated. Please use `heroku run rake` instead.
Running `rake db:version` attached to terminal... up, run.1
Current version: 20120501142157
C:\Users\Rowell\peek-boxbeta>heroku日志——应用程序温柔海滩-4013
2012-07-13T03:41:40+00:00应用程序[网站12]:
2012-07-13T03:41:40+00:00应用程序[web.12]:操作控制器::路由错误(没有与[GET]匹配的路由“/users/assets/pb/f
中航工业集团(avicon.jpg):
2012-07-13T03:41:40+00:00应用程序[网站12]:
2012-07-13T03:41:40+00:00应用程序[网站12]:
2012-07-13T03:41:40+00:00应用程序[网站12]:
2012-07-13T03:41:40+00:00应用程序[web.12]:缓存:[GET/users/assets/pb/favicon.jpg]未命中
2012-07-13T03:41:40+00:00 heroku[路由器]:获取www.peekbox.tv/users/assets/pb/favicon.jpg dyno=web.12队列=0等待
=0ms服务=6ms状态=404字节=728
2012-07-13T03:41:40+00:00应用程序[网站5]:
2012-07-13T03:41:40+00:00应用程序[网站5]:
2012-07-13T03:41:40+00:00应用程序[web.5]:2012-07-13 11开始获取203.177.42.214的“/assets/pb/prev arrow.png”
:41:40 +0800
2012-07-13T03:41:40+00:00应用程序[web.5]:缓存:[GET/assets/pb/prev arrow.png]过时、有效、存储
2012-07-13T03:41:40+00:00 heroku[路由器]:获取www.peekbox.tv/assets/pb/menu-bg.png dyno=web.6队列=0等待=0ms se
服务=3ms状态=200字节=2835
2012-07-13T03:41:40+00:00 heroku[路由器]:获取www.peekbox.tv/assets/pb/bird.png dyno=web.2队列=0等待=0ms服务
ce=4ms状态=200字节=1833
2012-07-13T03:41:40+00:00应用程序[web.2]:于2012-07-13 11:41:40开始获取203.177.42.214的“/assets/pb/bird.png”
+0800
2012-07-13T03:41:40+00:00应用程序[网站2]:
2012-07-13T03:41:40+00:00应用程序[网站2]:
2012-07-13T03:41:40+00:00应用程序[web.2]:缓存:[GET/assets/pb/bird.png]过时、有效、存储
2012-07-13T03:41:40+00:00应用程序[网站4]:
2012-07-13T03:41:40+00:00应用程序[网站4]:
2012-07-13T03:41:40+00:00应用程序[网站4]:2012-07-13 11开始获取203.177.42.214的“/assets/pb/twitter_32.png”
:41:40 +0800
2012-07-13T03:41:40+00:00应用程序[web.4]:缓存:[GET/assets/pb/twitter_32.png]过时、有效、存储
2012-07-13T03:41:40+00:00应用程序[网站11]:
2012-07-13T03:41:40+00:00应用程序[网站11]:
2012-07-13T03:41:40+00:00应用程序[web.11]:开始在2012-07-1获取203.177.42.214的“/assets/pb/bottom shadow.png”
3 11:41:40 +0800
2012-07-13T03:41:40+00:00 heroku[路由器]:获取www.peekbox.tv/assets/pb/twitter_32.png dyno=web.4队列=0等待=0ms
服务=4ms状态=200字节=2313
2012-07-13T03:41:40+00:00应用程序[web.11]:缓存:[GET/assets/pb/bottom shadow.png]过时、有效、存储
2012-07-13T03:41:40+00:00 heroku[路由器]:获取www.peekbox.tv/assets/pb/bottom-shadow.png dyno=web.11 queue=0等待
=0ms服务=6ms状态=200字节=145
2012-07-13T03:41:40+00:00 heroku[路由器]:获取www.peekbox.tv/assets/pb/prev-arrow.png dyno=web.5队列=0等待=0ms
服务=5ms状态=200字节=1043
2012-07-13T03:41:40+00:00应用程序[网站9]:
2012-07-13T03:41:40+00:00应用程序[网站9]:
2012-07-13T03:41:40+00:00应用程序[web.9]:在2012-07-13 1开始获取203.177.42.214的“/assets/pb/facebook_32.png”
1:41:40 +0800
2012-07-13T03:41:40+00:00应用程序[web.9]:缓存:[GET/assets/pb/facebook_32.png]过时、有效、存储
2012-07-13T03:41:40+00:00应用程序[网站3]:
2012-07-13T03:41:40+00:00应用程序[网站3]:
2012-07-13T03:41:40+00:00应用程序[web.3]:在2012-07-13开始获取203.177.42.214的“/assets/pb/footer bullet.png”
11:41:40 +0800
2012-07-13T03:41:40+00:00 heroku[路由器]:获取www.peekbox.tv/assets/pb/facebook_32.png dyno=web.9队列=0等待=0m
s服务=18ms状态=200字节=2094
2012-07-13T03:41:40+00:00应用程序[web.3]:缓存:[GET/assets/pb/footer bullet.png]过时、有效、存储
2012-07-13T03:41:40+00:00 heroku[路由器]:获取www.peekbox.tv/assets/pb/footer-bullet.png dyno=web.3队列=0等待=
0ms服务=21ms状态=200字节=391
2012-07-13T03:41:40+00:00应用程序[网站6]:
2012-07-13T03:41:40+00:00应用程序[网站6]:
2012-07-13T03:41:40+00:00应用程序[web.6]:2012-07-13 11:41开始获取203.177.42.214的“/assets/pb/menu bg.png”
:40 +0800
2012-07-13T03:41:40+00:00应用程序[web.6]:开始在2012-07-13 1获取203.177.42.214的“/assets/pb/header glow.png”
1:41:40 +0800
2012-07-13T03:41:40+00:00应用程序[web.6]:缓存:[GET/assets/pb/menu bg.png]过时、有效、存储
2012-07-13T03:41:40+00:00应用程序[网站6]:
2012-07-13T03:41:40+00:00应用程序[网站6]:
2012-07-13T03:41:40+00:00应用程序[web.6]:缓存:[GET/assets/pb/header glow.png]过时、有效、存储
2012-07-13T03:41:40+00:00应用程序[网站6]:
2012-07-13T03:41:40+00:00应用程序[网站6]:
2012-07-13T03:41:40+00:00应用程序[web.6]:开始在2012-07-1获取203.177.42.214的“/assets/pb/twitter border.png”
3 11:41:40 +0800
2012-07-13T03:41:40+00:00应用程序[web.6]:缓存:[GET/assets/pb/twitter border.png]过时、有效、存储
2012-07-13T03:41:40+00:00 heroku[路由器]:获取www.peekbox.tv/assets/pb/header-glow.png dyno=web.6队列=0等待=0m
s服务=36ms状态=200字节=36446
2012-07-13T03:41:40+00:00 heroku[路由器]:获取www.peekbox.tv/assets/pb/twitter-border.png dyno=web.6 queue=0等待
=0ms服务=37ms状态=200字节=117
2012-07-13T03:41:41+00:00应用程序[网站10]:
2012-07-13T03:41:41+00:00应用程序[web.10]:2012-07-13 11:41开始获取203.177.42.214的“/assets/pb/noise.png”:
40 +0800
2012-07-13T03:41:41+00:00应用程序[网站10]:
2012-07-13T03:41:41+00:00应用程序[web.10]:缓存:[GET/assets/pb/noise.png]过时、有效、存储
2012-07-13T03:41:41+00:00 heroku[路由器]:获取www.peekbox.tv/assets/pb/noise.png dyno=web.10 queue=0 wait=0ms ser
vice=957ms状态=304字节=0
2012-07-13T03:41:41+00:00应用程序[网站10]:
2012-07-13T03:41:41+00:00应用程序[web.10]:在2012-07-13 1开始获取203.177.42.214的“/assets/pb/next arrow.png”
1:41:41 +0800
2012-07-13T03:41:41+00:00应用程序[网站10]:
2012-07-13T03:41:41+00:00应用程序[web.10]:缓存:[GET/assets/pb/next arrow.png]过时、有效、存储
2012-07-13T03:41:41+00:00 heroku[路由器]:获取www.peekbox.tv/assets/pb/next-arrow.png dyno=web.10 queue=0 wait=0m
s服务=858ms状态=304字节=0
2012-07-13T03:41:42+00:00应用程序[web.8]:于2012-07-13 11:41:42+0800开始获取180.194.245.32的“bo”
2012-07-13T03:41:42+00:00应用程序[网站8]:
2012-07-13T03:41:42+00:00应用程序[网站8]:专业版
2012-07-13T03:41:43+00:00 app[web.8]: ActionView::Template::Error (undefined method `profilepic' for nil:NilClass
post.poster.profilepic_url(:profile_pic) 
$ heroku console
>> Post.all  # gives you a list of all the posts
>> Post.first.poster  # get first value in "posts" table and run "poster" method
>> Post.find(3) # get post with ID of 3
>> Post.find(3).poster # run "poster" method on post where ID = 3