search for: template_str

Displaying 1 result from an estimated 1 matches for "template_str".

Did you mean: template_dir
2005 Oct 14
2
Capture template output as plain html?
Hi, I''m trying to find out if the following is possible. I have a rhtml template stored in the database as a string. I need to process the template (as a string), similar to using ActionView''s <%= render_template("rhtml", @template_string) %>, but I need to do this in the ActionController and capture the result as a string. There is a method "render_to_string" in ActionController, however I don''t see that there is a way to pass it the template as a string. Basically I''m trying to process a t...