10 Sep 2009, 00:18
Photo_4_pragsmall

John Negron (2 posts)

I don’t understand why you would do it this way instead of using respond_to and write xml/erb views. What are the advantages to doing it this way?

Thanks

10 Sep 2009, 05:08
Maik_schmidt_avatar2_pragsmall

Maik Schmidt (113 posts)

Hi John!

Could you, please, tell me what recipe you are referring to?

Cheers

Maik

13 Sep 2009, 22:32
Photo_4_pragsmall

John Negron (2 posts)

Yes, its recipe 32 - Publish Resources with REST

Thanks a lot!

16 Oct 2009, 06:05
Maik_schmidt_avatar2_pragsmall

Maik Schmidt (113 posts)

The main advantage in this case is consistency and conciseness. All render statements look the same - no matter if you’re rendering XML or nothing - and you do not need additional .erb files. So it’s basically a matter of taste, I think.

  You must be logged in to comment