Overwrite render/render_file/render_template to use db view

Hi,

how to overwrite render/render_file/render_template to render view from database/string instead of file?

Background: I am using theme_support, which overwrite actionview "render_file" method.

I am confuse which method in actionview to overwrite : render or render_file or render_template

Or in others word, if you guys have done getting rhtml from database, how you guys approach this issue?

Not sure I understand your question correct. Why do you want to overwrite a method for that? But if you store some rhtml like:

"<div><%= @something.value %></div>"

in a database, then

render :inline => @my_model.value

would do the trick

Thorsten Mueller wrote:

Not sure I understand your question correct. Why do you want to overwrite a method for that? But if you store some rhtml like:

"<div><%= @something.value %></div>"

in a database, then

render :inline => @my_model.value

would do the trick

Yes, thanks for the answer. However, I don't want to write render :inline for every controller. hmm... may be, its not that bad to have render inline for every controller... anyway, thanks for the answer, I will give more info if render inline not satisfy my need to render all views from database.

Thanks again