Render more than once?
I am working on a CMS and there is some ERB code in the database. When this is pulled, it is rendered. It then uses helpers to pull other content. Some of this content also contains erb code.
Is there any way to continue parsing this erb code without getting the blasted "no more than one render per view" or something like that?
render :inline => @mytemplate_stored_in_the_db
I do use render :inline... I still get the rendering more than once error.
Once you've called a render, or redirect, it's recommended that you use an explict return to ensure no other render / redirect calls are made
Yes well I've solved my problem using inline renders and render_to_string