This is my own error resolution record.
The team implementation of flea market app creation is finally at the end. Merge what each member has developed into the master I often get an error when pulling to my local.
Click here for this error
Occurs when trying to transition from My Page to Logout Page.
undefined method `each' for nil:NilClass
It is a description. Where is the place? Speaking of It is user # show.
When I check the controller immediately
class UsersController < ApplicationController
def index
@parents = Category.where(ancestry: nil)
end
def show
end
end
The contents of the show are empty ... Add description here
class UsersController < ApplicationController
def index
@parents = Category.where(ancestry: nil)
end
def show
@parents = Category.where(ancestry: nil)
end
end
When I did, the display returned properly.
By repeating errors, guess the cause from the error statement yourself It has become possible to solve it. Did I get a little self-propelled power?
It's still a long way to go, but I'll continue to do my best!
Recommended Posts