In Rails, embedded Ruby in .rhtml pages is run using a processor called ERb, for Embedded Ruby.
<html> <head> <title>Using Ruby on Rails</title> </head> <body> <%= 2 + 3 %> </body> </html>