Skip to content

Instantly share code, notes, and snippets.

@icarito
Created September 30, 2016 14:50
Show Gist options
  • Save icarito/2160b75e8302243368eba57f62c0f9ad to your computer and use it in GitHub Desktop.
Save icarito/2160b75e8302243368eba57f62c0f9ad to your computer and use it in GitHub Desktop.
Started GET "/profile/ispectregadget" for 68.180.229.245 at 2016-09-30 14:49:07 +0000
Processing by UsersController#profile as */*
Parameters: {"id"=>"ispectregadget"}
Rendered users/profile.html.erb within layouts/application (12.0ms)
Completed 500 Internal Server Error in 175.4ms
ActionView::Template::Error (undefined method `barnstars' for nil:NilClass):
156: <li><a href="#questions" data-toggle="tab"><i class="fa fa-comments"></i><span class="hidden-sm hidden-xs"> <%= t('users.profile.questions') %></span></a></li>
157: <li><a href="#comments" id="comments-tab" data-toggle="tab"><i class="fa fa-comment"></i><span class="hidden-sm hidden-xs"> <%= t('users.profile.comments') %></span></a></li> 158: <li><a href="/profile/<%= @user.username %>/likes"><i class="fa fa-star"></i><span class="hidden-sm hidden-xs"> <%= t('users.profile.liked') %></span> (<%= @user.like_count %>)</a></li> 159: <li><a href="#barnstars" data-toggle="tab"><i class="fa fa-certificate"></i><span class="hidden-sm hidden-xs"> <%= t('users.profile.barnstars') %></span> (<%= @user.user.barnstars.length %>)</a></li> 160: </ul>
161:
162: <br />
app/views/users/profile.html.erb:159:in `_app_views_users_profile_html_erb___4016615464533423444_35263360'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment