In Rails 3, how can I display a partial template for a variable in my model, and also pass local variables to the template?

I am doing some email in Rails templates, which seems to be a common use case for rendering templates into variables in a model. How can I do this in Rails 3?

+3
source share
1 answer

The model should not know anything about the presentation. Try setting a variable and then rendering a partial inside the email template.

0
source

Source: https://habr.com/ru/post/1777860/


All Articles