Embedding Ruby code in HTML?
You will need to use a templating engine like Ruby Templates (ERB). Here's an example. Rails uses ERB so you could easily do this in each of your templates.
Rails has something called ERB to do just this sort of thing.
You will need to use a templating engine like Ruby Templates (ERB). Here's an example. Rails uses ERB so you could easily do this in each of your templates.
Rails has something called ERB to do just this sort of thing.