rendering - In Rails 3, how can I render a partial template to a variable in my model, while also passing local variables into the template? -
i'm doing email templating in rails seems common use case rendering templates variables in model. how can go in rails 3?
model should know nothing presentation. try setting variable , rendering partial inside email template instead.
Comments
Post a Comment