Rams are annoying, but they can be dealt with. There a few things to remember with the most troublesome modules from any ship.
-You know what ships have which modules ie the rams are only on destroyers
-Most people only use rams on the oberon destroyer (not always, but the vast majority of the time)
-to use a ram means to go "all in" meaning they have to single out a target and get to them as fast as possible with them not doing anything but sitting still
If i'm in a dreadnought, I use armor amp and once they ding off my hull i broadside them and that rip them apart with repeaters from there.
A corvette can easily dodge a rammer
In an artillery cruiser, I hit em with a stasis missile and use rapid fire or siege mode to finish them off long before they have a chance to even get close
In a destroyer, there are a lot of options, but I generally see them coming and take them out before they get too close to start the ram.
Like an earlier poster said, ramming is not as easy as it looks and you can duck around or behind cover fairly easy and make them waste a module slot. Remember, since they have some kind of ram as their primary that means they also dont have a strong missile or goliath slotted. Also if its an oberon rammer they will generally have scrambler as their perimeter module and will be very vulnerable to status missiles.