Beta Beta
2008-Jun-09 12:11 UTC
Is it possible render partial from database instead of file
Is it possible to render partial from database instead of file? render :partial => "person" =====> this render from file. How about partial rendering by injecting string of "rhtml" dynamically which coming from database? 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 -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2008-Jun-09 12:15 UTC
Re: Is it possible render partial from database instead of file
On 9 Jun 2008, at 13:11, Beta Beta wrote:> > Is it possible to render partial from database instead of file? > > render :partial => "person" =====> this render from file.Well there''s render :inline which you might be able to bend to your will. Fred> How about partial rendering by injecting string of "rhtml" dynamically > which coming from database? > > 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 -~----------~----~----~----~------~----~------~--~---
Beta Beta
2008-Jun-09 16:35 UTC
Re: Is it possible render partial from database instead of f
Frederick Cheung wrote:> On 9 Jun 2008, at 13:11, Beta Beta wrote: > >> >> Is it possible to render partial from database instead of file? >> >> render :partial => "person" =====> this render from file. > > Well there''s render :inline which you might be able to bend to your > will. > > FredThanks Fred, that''s solve it. -- 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 -~----------~----~----~----~------~----~------~--~---
Beta Beta
2008-Jun-09 16:53 UTC
Re: Is it possible render partial from database instead of f
Frederick Cheung wrote:> On 9 Jun 2008, at 13:11, Beta Beta wrote: > >> >> Is it possible to render partial from database instead of file? >> >> render :partial => "person" =====> this render from file. > > Well there''s render :inline which you might be able to bend to your > will. > > FredSorry, another question. 1. Will render :inline cause performance hit? 2. Will having a lot of render cause huge performance problem? 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 -~----------~----~----~----~------~----~------~--~---