Please use code tags when you want to insert a code snippet.
Also, please elaborate: “doesn’t recognize rb”. Do you get errors during compilation? Or runtime errors? You have to be more specific.
The code you posted is also incomplete, so we can only guess whether it’s the one or the other.