String interpolation in Rails

I18n.interpolate ‘Jeni eats %{what}’, {what: ‘potatoes’}

Leave a Reply

Your email address will not be published. Required fields are marked *