quicksnap/githubbug — Issue #23: NoMethor Error in Projects#index when coming from project view to home in client test account.
Author: JustinWUP
Created: 2012-02-27 00:32:15+00:00
State: open
Labels: Bugs

1.Log in with admin@admin.com
2.In an incognito tab, login with user2@example.com
3.View project with user account
4.Add access to a new project with admin account for user2@example.com
5.Return to home page with user account.

Errormessage:

NoMethodError in Projects#index

Showing /Users/xdeadclancyx/projects/githubbug/app/views/projects/index.html.erb where line #7 raised:

undefined method `empty?' for nil:NilClass
Extracted source (around line #7):

4: <% end %>
5:
6:

7:	<% @projects.each do |project| %>
8:

9:
10:

<%= link_to project.name, project %>
Rails.root: /Users/xdeadclancyx/projects/githubbug

Application Trace | Framework Trace | Full Trace
app/views/projects/index.html.erb:7:in `_app_views_projects_index_html_erb___1636446870183117021_70319634394660'
Request

Parameters:

None
Show session dump

Show env dump

Response

Headers:

None