« Ordered Rails Book | Main | iPod Nano and Motorola ROKR announced today »

August 29, 2005

Comments

scott raymond

Generally, the preferred way to do it is to do a "render :partial => '...'" rather than inlining HTML into the controller. But, if you're not a purist and the case is as simple as Curt's example, it might be worth sacrificing purity for simplicity/clarity.

Alex Castro

Thanks Raymond. I'll try this out. For the app I'm building, I want more purity. I'm sending down a bunch of XML that will be used in different ways.

Jesse Andrews

Yeah, the use of render_text is just a quick hack. . .

the proper thing to do is to use partials. Then have the control use the partial view (the same partial view that is used to construct the page in the first place).

found your site from Jeff Barr's article about amaozn employees :)

The comments to this entry are closed.

Pluggd

Technorati

March 2007

Sun Mon Tue Wed Thu Fri Sat
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

People

Currently reading...