Render view (not partial view) from dynamic rhtml string

Hi,

Any one know how to render dynamic view (like render inline but for
file) from database instead of file?

For example:
instead of using “/comments/index.rhtml” as a view, it will
automatically inject the a string of dynamic “rhtml” after calling
comment controller with index action.

Hopefully, my question is not confusing

Thank you in advance

render :inline => my_function_that_returns_a_string ?

On Jun 16, 2:34 pm, Beta B. [email protected]

julian wrote:

render :inline => my_function_that_returns_a_string ?

On Jun 16, 2:34�pm, Beta B. [email protected]

you guys are rocks. I just realized, I can also use render :inline
inside controller. Previously, I thought, I can only use it in the view
file.

Thanks again