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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
render :inline => my_function_that_returns_a_string ? On Jun 16, 2:34 pm, Beta Beta <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> 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 > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Beta Beta
2008-Jun-16 19:44 UTC
Re: Render view (not partial view) from dynamic rhtml string
julian wrote:> render :inline => my_function_that_returns_a_string ? > > On Jun 16, 2:34�pm, Beta Beta <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---