For that, I’d just use Rails, and the connect AI/ML tools over an api or (riskier) direct to the DB.
The stuff I looked at ages ago was for literally embedding Python code in Ruby code. I never used any of it either, so I don’t have any recommendations.
Edit: Actually, rather than have Python connect to the Rails DB, have Rails also connect to the Python DB (note that this can be on the same db server, etc). Rails can then handle all the “I’m a product” stuff (user accounts, etc) and then read the Python data for the rest. Would that work?
Also, Jupyter and Zeppelin notebooks allow for interoperability, although I don’t know how.
(Oh, lastly, if there’s a JVM implementation of Python you could probably use alongside JRuby)