Hello: What would be the best way to Output Code in TextArea for a UI component? The Rails App View is pure HTML and JavaScript. 1.render in text for controller action and the text is the code string. The < and > etc can be passed as is in this mode. 2.Read a HTML Template File (containing JS and CSS references) in Public directory(?) that needs to be substitute some variables that were inputted in a form by the user. 3.Create HTML on Ruby Side with some XML Builder instead of Reading a File. And then pass that String to code. Please advise. Thank you. ps. Was posted on Ruby forum by mistake. Sorry about that. Moved it to Ruby on Rails forum. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Smart RoR
2010-Mar-03 16:35 UTC
Re: Html/JavaScript/CSS code ouput in TextArea-- Best Ways
Smart RoR wrote: Its probably the builder template that works best here I guess to generate HTML code here. Is there a way to define for example to use Nokigiri instead of default Builder class? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.