lwallenstein (owner)

Revisions

gist: 75616 Download_button fork
public
Public Clone URL: git://gist.github.com/75616.git
Text only
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
ActionView::TemplateError (You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.map) on line #16 of app/views/users/dashboard.erb:
13: You don't have any friends using this app, you can invite some <a href="#" onclick="friend_invitation('<%= invitation_url %>', '<%= root_url %>');">here</a>
14: <% else %>
15: <% current_facebook_user.friends.each do |friend| %>
16: <%= friend.name %>
17: <%= fb_profile_pic(friend.id, :size => :square) %>
18: <br/>
19: <% end %>
 
    /home/deploy/kiobo/releases/20090308085938/vendor/plugins/facebooker/lib/facebooker/model.rb:75:in `work_history='
    /home/deploy/kiobo/releases/20090308085938/vendor/plugins/facebooker/lib/facebooker/model.rb:126:in `__send__'
    /home/deploy/kiobo/releases/20090308085938/vendor/plugins/facebooker/lib/facebooker/model.rb:126:in `populate_from_hash!'
    /home/deploy/kiobo/releases/20090308085938/vendor/plugins/facebooker/lib/facebooker/model.rb:123:in `each'
    /home/deploy/kiobo/releases/20090308085938/vendor/plugins/facebooker/lib/facebooker/model.rb:123:in `populate_from_hash!'
    /home/deploy/kiobo/releases/20090308085938/vendor/plugins/facebooker/lib/facebooker/models/user.rb:121:in `populate'
    /home/deploy/kiobo/releases/20090308085938/vendor/plugins/facebooker/lib/facebooker/session.rb:474:in `post_without_logging'
    /home/deploy/kiobo/releases/20090308085938/vendor/plugins/facebooker/lib/facebooker/session.rb:484:in `post'
    /home/deploy/kiobo/releases/20090308085938/vendor/plugins/facebooker/lib/facebooker/logging.rb:27:in `log_fb_api'
    /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/core_ext/benchmark.rb:8:in `realtime'
    /home/deploy/kiobo/releases/20090308085938/vendor/plugins/facebooker/lib/facebooker/logging.rb:27:in `log_fb_api'
    /home/deploy/kiobo/releases/20090308085938/vendor/plugins/facebooker/lib/facebooker/session.rb:483:in `post'
    /home/deploy/kiobo/releases/20090308085938/vendor/plugins/facebooker/lib/facebooker/models/user.rb:120:in `populate'
    /home/deploy/kiobo/releases/20090308085938/vendor/plugins/facebooker/lib/facebooker/model.rb:35:in `name'
    /home/deploy/kiobo/releases/20090308085938/app/views/users/dashboard.erb:16
    /home/deploy/kiobo/releases/20090308085938/app/views/users/dashboard.erb:15:in `each'
    /home/deploy/kiobo/releases/20090308085938/app/views/users/dashboard.erb:15
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/renderable.rb:39:in `send'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/renderable.rb:39:in `render'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/template.rb:73:in `render_template'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/base.rb:256:in `render'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/base.rb:367:in `_render_with_layout'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/base.rb:254:in `render'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:1174:in `render_for_file'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:896:in `render_without_benchmark'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:51:in `render'
    /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/core_ext/benchmark.rb:8:in `realtime'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:51:in `render'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:868:in `render_without_benchmark'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:51:in `render'
    /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/core_ext/benchmark.rb:8:in `realtime'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:51:in `render'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:1248:in `default_render'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:1259:in `perform_action_without_filters'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/filters.rb:617:in `call_filters'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'