I have tried learning about ratios and proportions from a couple of books, but I have problems with the approaches they take.
First of all, a definition is never actually given. Examples are given concerning only natural numbers. For example one definition I encountered was the ratio of object $x$ to object $y$ is $m:n$ if for every $m$ $x's$ there are $n$ $ y's$. Good enough but what about rational and real numbers ?
Secondly, if a ratio is supposed to be a relation between two quantities (which it is defined vaguely in many books) then why is it treated as a number, for example saying things like the ratio of a to b is greater than that of c to d and so on.
So the question is:
What is a definition of the ratio between two real numbers $a$ and $b$. Is it fair to say that $a$ and $b$ have ratio $m:n$ if $\frac{a}{m} = \frac{b}{n}$, for example?
I don't know if this explanation will be sufficient for your purposes, but at a high level, a ratio $a/b$ is simply the product of $a$ and the multiplicative inverse of $b$.
Is that too abstract? I think that part of the problem here is that a "ratio" is rarely a well-formalized mathematical object: we use ratios in everyday discourse to describe relationships between two things using a rational number, but I rarely see the idea of a ratio mentioned formally in mathematics. I wouldn't overthink ratios -- you're fundamentally looking at arithmetic.