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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -