Omkar Lahurikar
Joined
10 Experience
0 Lessons Completed
0 Questions Solved
Activity
I created this Multi-tenant app, just to see how things work. But while creating new post I am keep getting error (undefined method `posts' for nil:NilClass ) I spent 3-4 hours debugging but no luck. Any help much appreciated!
Error is in
def index
@posts = @account.posts.all
end