Open ashutoshpith opened 6 years ago
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'
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'