Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `pics' for nil:NilClass #104

Open
ashutoshpith opened this issue May 6, 2018 · 0 comments
Open

undefined method `pics' for nil:NilClass #104

ashutoshpith opened this issue May 6, 2018 · 0 comments

Comments

@ashutoshpith
Copy link

ashutoshpith commented May 6, 2018

screenshot 91
NoMethodError in PicsController#new
undefined method `pics' for nil:NilClass

def new
@pic = current_user.pics.build
end

app/controllers/pics_controller.rb:12:in `new'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant