Hardly the same. Lets not kid ourselves into thinking any of the popular software we use is bug-free, which is nigh impossible feat for any large codebase. If this rails bug had not been discovered, it would still be there.
The issue is that similar projects, with similar success, with a similar number of developers looking at them, have fewer severe vulnerabilities.
The simplest explanation is that one project has more vulnerabilities lying dormant.