search for: render_as_string

Displaying 2 results from an estimated 2 matches for "render_as_string".

2005 Dec 27
6
avoid multiple render per action
Hello, I have a hash that contains categories, and each category ID is a hash of subcategories. What i want to do is dynamically load that hash, loop thru it, for each category , subcat run a query against the DB, and render a partial. The issue is i put the render:partial in a for loop but you can only render once per action. What is the best way to loop thru all my categories without a
2006 Apr 04
0
Render an html according to external link
.../Here I want to render as string www.boo.com target var ts = new tabstrip(); var t1 = new tab("Foo",pane1); var t2 = new tab("Boo",pane2); ts.add(t1); ts.add(t2); ts.add(t3); ts.add(t4); ts.add(t5); ts.write(); How can I render an html according to external link? for example render_as_string("http://www.foo.com") Thanks Sharon Lin. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060404/6dcce508/attachment.html