I found better way:
def show
@modal_popup = ModalPopup.find(params[:id])
# erb = ERB.new(@modal_popup.content)
# render :text => erb.result, :layout => false
render :inline => @modal_popup.content, :layout => false
end
I use this action inside iframe or render the action from another views.