I studied grammar in my school days but I don't remember most of the rules. Still, I am able to manage somewhat. So is it necessary that we learn grammar thoroughly or just read a lot and grammar will follow? What is the better option?  

And what are the best resources/sites to learn grammar for intermediates?