On average, VSCode is enough. Consider a Rails project.
For Jetbrain, you better use RubyMine for the Ruby part, it's the same as WebStorm, but for Ruby projects.
Now you better use WebStorm for the frontend part, right ?
In case of VSCode, one Editor to rule them all, both backend (Ruby) and frontend(Typescript) part.